|
54 | 54 | "enrollmentId": "0000001", |
55 | 55 | "courseId": "C.1", |
56 | 56 | "moduleId": "M.1", |
57 | | - "timestamp": "2020-12-31T23:59:59", |
| 57 | + "timestamp": "", |
58 | 58 | "type": "Course" |
59 | 59 | } |
60 | 60 | ], |
|
64 | 64 | "moduleId": "M.1", |
65 | 65 | "admissionId": "0000001:C.1", |
66 | 66 | "enrollmentId": "0000001", |
67 | | - "timestamp": "2020-12-31T23:59:59", |
| 67 | + "timestamp": "1970-01-01T00:00:00", |
68 | 68 | "type": "Course" |
69 | 69 | } |
70 | 70 | ] |
|
101 | 101 | "examId": "ExampleCourse:M.1:WrittenExam:2021-02-16T10:00:00", |
102 | 102 | "admissionId": "0000001:ExampleCourse:M.1:WrittenExam:2021-02-16T10:00:00", |
103 | 103 | "enrollmentId": "0000001", |
104 | | - "timestamp": "2020-12-31T23:59:59", |
| 104 | + "timestamp": "1970-01-01T00:00:00", |
105 | 105 | "type": "Exam" |
106 | 106 | } |
107 | 107 | ] |
|
397 | 397 | } |
398 | 398 | ] |
399 | 399 | }, |
400 | | - { |
401 | | - "name": "addNonExistingAdmission_EmptyParam_Timestamp", |
402 | | - "type": "addAdmission_FAILURE", |
403 | | - "ids": [ |
404 | | - "User1", |
405 | | - "0000005" |
406 | | - ], |
407 | | - "setup": { |
408 | | - "examinationRegulationContract": [ |
409 | | - "Computer Science", |
410 | | - { |
411 | | - "name": "Computer Science", |
412 | | - "active": true, |
413 | | - "modules": [ |
414 | | - { |
415 | | - "id": "M.1", |
416 | | - "name": "Math 1" |
417 | | - }, |
418 | | - { |
419 | | - "id": "M.2", |
420 | | - "name": "Math 2" |
421 | | - } |
422 | | - ] |
423 | | - } |
424 | | - ], |
425 | | - "matriculationDataContract": [ |
426 | | - "0000005", |
427 | | - { |
428 | | - "enrollmentId": "0000005", |
429 | | - "matriculationStatus": [ |
430 | | - { |
431 | | - "fieldOfStudy": "Computer Science", |
432 | | - "semesters": [ |
433 | | - "WS2018/19" |
434 | | - ] |
435 | | - } |
436 | | - ] |
437 | | - } |
438 | | - ] |
439 | | - }, |
440 | | - "input": [ |
441 | | - { |
442 | | - "admissionId": "", |
443 | | - "enrollmentId": "0000005", |
444 | | - "courseId": "C.1", |
445 | | - "moduleId": "M.1", |
446 | | - "timestamp": "", |
447 | | - "type": "Course" |
448 | | - } |
449 | | - ], |
450 | | - "compare": [ |
451 | | - { |
452 | | - "type": "HLUnprocessableEntity", |
453 | | - "title": "The following parameters do not conform to the specified format", |
454 | | - "invalidParams": [ |
455 | | - { |
456 | | - "name": "admission.timestamp", |
457 | | - "reason": "timestamp must be the following format \"(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\", e.g. \"2020-12-31T23:59:59\"" |
458 | | - } |
459 | | - ] |
460 | | - } |
461 | | - ] |
462 | | - }, |
463 | | - { |
464 | | - "name": "addNonExistingAdmission_WrongFormatParam_Timestamp", |
465 | | - "type": "addAdmission_FAILURE", |
466 | | - "ids": [ |
467 | | - "User1", |
468 | | - "0000006" |
469 | | - ], |
470 | | - "setup": { |
471 | | - "examinationRegulationContract": [ |
472 | | - "Computer Science", |
473 | | - { |
474 | | - "name": "Computer Science", |
475 | | - "active": true, |
476 | | - "modules": [ |
477 | | - { |
478 | | - "id": "M.1", |
479 | | - "name": "Math 1" |
480 | | - }, |
481 | | - { |
482 | | - "id": "M.2", |
483 | | - "name": "Math 2" |
484 | | - } |
485 | | - ] |
486 | | - } |
487 | | - ], |
488 | | - "matriculationDataContract": [ |
489 | | - "0000006", |
490 | | - { |
491 | | - "enrollmentId": "0000006", |
492 | | - "matriculationStatus": [ |
493 | | - { |
494 | | - "fieldOfStudy": "Computer Science", |
495 | | - "semesters": [ |
496 | | - "WS2018/19" |
497 | | - ] |
498 | | - } |
499 | | - ] |
500 | | - } |
501 | | - ] |
502 | | - }, |
503 | | - "input": [ |
504 | | - { |
505 | | - "admissionId": "", |
506 | | - "enrollmentId": "0000006", |
507 | | - "courseId": "C.1", |
508 | | - "moduleId": "M.1", |
509 | | - "timestamp": "2020-12-31-23:59:59", |
510 | | - "type": "Course" |
511 | | - } |
512 | | - ], |
513 | | - "compare": [ |
514 | | - { |
515 | | - "type": "HLUnprocessableEntity", |
516 | | - "title": "The following parameters do not conform to the specified format", |
517 | | - "invalidParams": [ |
518 | | - { |
519 | | - "name": "admission.timestamp", |
520 | | - "reason": "timestamp must be the following format \"(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\", e.g. \"2020-12-31T23:59:59\"" |
521 | | - } |
522 | | - ] |
523 | | - } |
524 | | - ] |
525 | | - }, |
526 | 400 | { |
527 | 401 | "name": "addNonExistingAdmission_InvalidModules", |
528 | 402 | "type": "addAdmission_FAILURE", |
|
0 commit comments