Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results

Target

Select target project
  • dojo_project/projects/shared/nodesharedcode
1 result
Select Git revision
  • jw_sonar
  • jw_sonar_backup
  • main
  • move-to-esm-only
  • open_tool_for_self_hosting
  • v5.0
  • v4.1
  • v4.2
8 results
Show changes
...@@ -9,10 +9,12 @@ class SharedExerciseHelper { ...@@ -9,10 +9,12 @@ class SharedExerciseHelper {
const ajv = new Ajv(); const ajv = new Ajv();
const schema: JTDSchemaType<ExerciseResultsFile> = { const schema: JTDSchemaType<ExerciseResultsFile> = {
properties : { properties : {},
success: { type: 'boolean' }
},
optionalProperties : { optionalProperties : {
success: { type: 'boolean' },
containerExitCode: { type: 'uint32' },
successfulTests: { type: 'uint32' }, successfulTests: { type: 'uint32' },
failedTests : { type: 'uint32' }, failedTests : { type: 'uint32' },
......
...@@ -8,7 +8,7 @@ interface AssignmentFile { ...@@ -8,7 +8,7 @@ interface AssignmentFile {
immutable: Array<ImmutableFileDescriptor> immutable: Array<ImmutableFileDescriptor>
result: { result: {
container: string, volume: string container: string, volume?: string
} }
} }
......
...@@ -4,10 +4,15 @@ enum ExerciseCheckerError { ...@@ -4,10 +4,15 @@ enum ExerciseCheckerError {
DOCKER_COMPOSE_LOGS_ERROR = 202, DOCKER_COMPOSE_LOGS_ERROR = 202,
DOCKER_COMPOSE_DOWN_ERROR = 203, DOCKER_COMPOSE_DOWN_ERROR = 203,
EXERCISE_RESULTS_FOLDER_TOO_BIG = 204, EXERCISE_RESULTS_FOLDER_TOO_BIG = 204,
EXERCISE_RESULTS_FILE_NOT_FOUND = 205,
EXERCISE_RESULTS_FILE_SCHEMA_NOT_VALID = 206, EXERCISE_RESULTS_FILE_SCHEMA_NOT_VALID = 206,
UPLOAD = 207 UPLOAD = 207
} }
/**
* Codes that are unusable for historic reasons:
* - 205: EXERCISE_RESULTS_FILE_NOT_FOUND => From the version 2.2.0 this error is not possible anymore because the results file is now optional
*/
export default ExerciseCheckerError; export default ExerciseCheckerError;
\ No newline at end of file
interface ExerciseResultsFile { interface ExerciseResultsFile {
success: boolean; success?: boolean;
containerExitCode?: number;
successfulTests?: number; successfulTests?: number;
failedTests?: number; failedTests?: number;
......
...@@ -7,6 +7,7 @@ enum GitlabRoute { ...@@ -7,6 +7,7 @@ enum GitlabRoute {
REPOSITORY_FORK = '/projects/{{id}}/fork', REPOSITORY_FORK = '/projects/{{id}}/fork',
REPOSITORY_MEMBER_ADD = '/projects/{{id}}/members', REPOSITORY_MEMBER_ADD = '/projects/{{id}}/members',
REPOSITORY_MEMBERS_GET = '/projects/{{id}}/members/all', REPOSITORY_MEMBERS_GET = '/projects/{{id}}/members/all',
REPOSITORY_BADGES_ADD = '/projects/{{id}}/badges',
REPOSITORY_VARIABLES_ADD = '/projects/{{id}}/variables', REPOSITORY_VARIABLES_ADD = '/projects/{{id}}/variables',
REPOSITORY_BRANCHES_PROTECT = '/projects/{{id}}/protected_branches', REPOSITORY_BRANCHES_PROTECT = '/projects/{{id}}/protected_branches',
REPOSITORY_TREE = '/projects/{{id}}/repository/tree', REPOSITORY_TREE = '/projects/{{id}}/repository/tree',
......