Fix validation for DidCreatePayload #1691
dispatch.yml
on: push
Lint
/
Broken Markdown links
1m 55s
Lint
/
Super Linter
3m 12s
Build & Test
/
Build Node.js
3m 14s
Build & Test
/
Build Docker image
10m 23s
Staging
/
Staging Deploy
Release
/
Release Docker image
Annotations
6 errors, 3 warnings, and 1 notice
[chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based):
tests/did/create.negative.spec.ts#L136
1) [chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based)
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
134 | headers: { "Content-Type": "application/json" }
135 | });
> 136 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR);
| ^
137 | expect(await response.text()).toEqual(expect.stringContaining("unable to split did into method, namespace and id"));
138 | });
139 |
at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:136:31
|
[chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based):
tests/did/create.negative.spec.ts#L136
1) [chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
134 | headers: { "Content-Type": "application/json" }
135 | });
> 136 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR);
| ^
137 | expect(await response.text()).toEqual(expect.stringContaining("unable to split did into method, namespace and id"));
138 | });
139 |
at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:136:31
|
[chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based):
tests/did/create.negative.spec.ts#L136
1) [chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based)
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 500
Received: 400
134 | headers: { "Content-Type": "application/json" }
135 | });
> 136 | expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR);
| ^
137 | expect(await response.text()).toEqual(expect.stringContaining("unable to split did into method, namespace and id"));
138 | });
139 |
at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:136:31
|
[chromium] › did/create.negative.spec.ts:140:1 › [Negative] It cannot create DID without VerificationMethodType in request body (JSON based):
tests/did/create.negative.spec.ts#L158
2) [chromium] › did/create.negative.spec.ts:140:1 › [Negative] It cannot create DID without VerificationMethodType in request body (JSON based)
Error: expect(received).toEqual(expected) // deep equality
Expected: StringContaining "Provide options section to create a DID"
Received: "{\"error\":\"Invalid didDocument\"}"
156 | });
157 | expect(response.status()).toBe(StatusCodes.BAD_REQUEST);
> 158 | expect(await response.text()).toEqual(expect.stringContaining("Provide options section to create a DID"));
| ^
159 | });
160 |
161 | test('[Negative] It cannot create DID without DidDocument in request body (JSON based)', async ({ request }) => {
at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:158:35
|
[chromium] › did/create.negative.spec.ts:140:1 › [Negative] It cannot create DID without VerificationMethodType in request body (JSON based):
tests/did/create.negative.spec.ts#L158
2) [chromium] › did/create.negative.spec.ts:140:1 › [Negative] It cannot create DID without VerificationMethodType in request body (JSON based)
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toEqual(expected) // deep equality
Expected: StringContaining "Provide options section to create a DID"
Received: "{\"error\":\"Invalid didDocument\"}"
156 | });
157 | expect(response.status()).toBe(StatusCodes.BAD_REQUEST);
> 158 | expect(await response.text()).toEqual(expect.stringContaining("Provide options section to create a DID"));
| ^
159 | });
160 |
161 | test('[Negative] It cannot create DID without DidDocument in request body (JSON based)', async ({ request }) => {
at /home/runner/work/credential-service/credential-service/tests/did/create.negative.spec.ts:158:35
|
Build & Test / Build Node.js
Process completed with exit code 1.
|
Slow Test:
[chromium] › did/create.positive.spec.ts#L1
[chromium] › did/create.positive.spec.ts took 24.7s
|
Slow Test:
[chromium] › did/create.negative.spec.ts#L1
[chromium] › did/create.negative.spec.ts took 23.7s
|
Slow Test:
[setup] › auth.setup.ts#L1
[setup] › auth.setup.ts took 15.9s
|
🎭 Playwright Run Summary
2 failed
[chromium] › did/create.negative.spec.ts:116:1 › [Negative] It cannot create DID with an invalid id format in DIDDocument in request body (JSON based)
[chromium] › did/create.negative.spec.ts:140:1 › [Negative] It cannot create DID without VerificationMethodType in request body (JSON based)
1 interrupted
[chromium] › did/create.positive.spec.ts:39:1 › [Positive] It can create DID with mandatory and optional properties (Form based + UUID style)
7 skipped
15 passed (59.1s)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
credential-service-staging
Expired
|
585 MB |
|