Skip to content

fix: Json & Cors validation #1832

fix: Json & Cors validation

fix: Json & Cors validation #1832

Triggered via push December 6, 2023 11:50
Status Failure
Total duration 10m 32s
Artifacts 1
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

dispatch.yml

on: push
Lint  /  Broken Markdown links
2m 35s
Lint / Broken Markdown links
Lint  /  Super Linter
3m 37s
Lint / Super Linter
Build & Test  /  Build Node.js
2m 10s
Build & Test / Build Node.js
Build & Test  /  Build Docker image
10m 20s
Build & Test / Build Docker image
Release  /  Release Docker image
Release / Release Docker image
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 1 notice
[chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based): tests/did/create.negative.spec.ts#L63
1) [chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based) Error: expect(received).toBe(expected) // Object.is equality Expected: 500 Received: 400 61 | headers: { 'Content-Type': 'application/json' }, 62 | }); > 63 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR); | ^ 64 | expect(await response.text()).toEqual(expect.stringContaining('Key not found')); 65 | }); 66 | at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:63:28
[chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based): tests/did/create.negative.spec.ts#L63
1) [chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based) Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 500 Received: 400 61 | headers: { 'Content-Type': 'application/json' }, 62 | }); > 63 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR); | ^ 64 | expect(await response.text()).toEqual(expect.stringContaining('Key not found')); 65 | }); 66 | at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:63:28
[chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based): tests/did/create.negative.spec.ts#L63
1) [chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based) Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 500 Received: 400 61 | headers: { 'Content-Type': 'application/json' }, 62 | }); > 63 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR); | ^ 64 | expect(await response.text()).toEqual(expect.stringContaining('Key not found')); 65 | }); 66 | at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:63:28
[chromium] › did/create.negative.spec.ts:67:1 › [Negative] It cannot create DID with an invalid VerificationMethodType in request body (JSON based): tests/did/create.negative.spec.ts#L86
2) [chromium] › did/create.negative.spec.ts:67:1 › [Negative] It cannot create DID with an invalid VerificationMethodType in request body (JSON based) Error: expect(received).toBe(expected) // Object.is equality Expected: 500 Received: 400 84 | headers: { 'Content-Type': 'application/json' }, 85 | }); > 86 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR); | ^ 87 | expect(await response.text()).toEqual(expect.stringContaining('Unsupported verificationMethod type')); 88 | }); 89 | at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:86:28
[chromium] › did/create.negative.spec.ts:67:1 › [Negative] It cannot create DID with an invalid VerificationMethodType in request body (JSON based): tests/did/create.negative.spec.ts#L86
2) [chromium] › did/create.negative.spec.ts:67:1 › [Negative] It cannot create DID with an invalid VerificationMethodType in request body (JSON based) Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 500 Received: 400 84 | headers: { 'Content-Type': 'application/json' }, 85 | }); > 86 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR); | ^ 87 | expect(await response.text()).toEqual(expect.stringContaining('Unsupported verificationMethod type')); 88 | }); 89 | at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:86:28
Build & Test / Build Node.js
Process completed with exit code 1.
🎭 Playwright Run Summary
2 failed [chromium] › did/create.negative.spec.ts:45:1 › [Negative] It cannot create DID with not existent key in request body (JSON based) [chromium] › did/create.negative.spec.ts:67:1 › [Negative] It cannot create DID with an invalid VerificationMethodType in request body (JSON based) 1 interrupted [chromium] › did/create.positive.spec.ts:11:1 › [Positive] It can create DID with mandatory properties (Form based + Indy style) 25 did not run 11 passed (36.5s)

Artifacts

Produced during runtime
Name Size
credential-service-staging Expired
582 MB