Skip to content

Improve ConstraintAction Error Messages #3531

Improve ConstraintAction Error Messages

Improve ConstraintAction Error Messages #3531

Triggered via pull request October 3, 2023 18:43
Status Failure
Total duration 7m 43s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors, 2 warnings, and 1 notice
src/tests/bindings.test.ts:173:3 › Merlin Bindings › ConstraintViolations: e2e-tests/src/tests/bindings.test.ts#L194
1) src/tests/bindings.test.ts:173:3 › Merlin Bindings › ConstraintViolations ===================== Error: expect(received).toEqual(expected) // deep equality - Expected - 1 + Received + 1 Object { "cause": "simulation dataset with id `-1` does not exist", - "message": "simulation dataset mismatch exception", + "message": "input mismatch exception", } 192 | session_variables: admin.session}}); 193 | expect(response.status()).toEqual(404); > 194 | expect((await response.json())).toEqual({ | ^ 195 | message: "simulation dataset mismatch exception", 196 | cause: "simulation dataset with id `-1` does not exist" 197 | }); at file:///home/runner/work/***/***/e2e-tests/src/tests/bindings.test.ts:194:37
src/tests/bindings.test.ts:665:3 › Scheduler Bindings › SchedulingDslTypescript: e2e-tests/src/tests/bindings.test.ts#L727
2) src/tests/bindings.test.ts:665:3 › Scheduler Bindings › SchedulingDslTypescript =============== Error: expect(received).toEqual(expected) // deep equality Expected: true Received: false 725 | for(let file of respBody.typescriptFiles){ 726 | if(file.filePath == "file:///mission-model-generated-code.ts"){ > 727 | expect(file.content.includes(resourceTypesWithExternalResource)).toEqual(true); | ^ 728 | found = true; 729 | } 730 | } at file:///home/runner/work/***/***/e2e-tests/src/tests/bindings.test.ts:727:74
e2e-test
Process completed with exit code 1.
e2e-test
No files were found with the provided path: **/sequencing-server/test-report.*. No artifacts will be uploaded.
Slow Test: e2e-tests/src/tests/scheduler-with-sim.test.ts#L1
e2e-tests/src/tests/scheduler-with-sim.test.ts took 15s
🎭 Playwright Run Summary
2 failed src/tests/bindings.test.ts:173:3 › Merlin Bindings › ConstraintViolations ====================== src/tests/bindings.test.ts:665:3 › Scheduler Bindings › SchedulingDslTypescript ================ 109 passed (1m)

Artifacts

Produced during runtime
Name Size
Test Results Expired
9.22 MB