Skip to content

Remove did from signature submission in tests #855

Remove did from signature submission in tests

Remove did from signature submission in tests #855

Triggered via push January 10, 2025 14:10
Status Failure
Total duration 1m 34s
Artifacts 2

dispatch.yml

on: push
Lint  /  Broken Markdown links
13s
Lint / Broken Markdown links
Lint  /  Super Linter
1m 21s
Lint / Super Linter
Build & Test  /  Build Node.js
1m 3s
Build & Test / Build Node.js
Build & Test  /  Build Docker image
41s
Build & Test / Build Docker image
Release  /  Release Docker image
Release / Release Docker image
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 4 warnings, and 1 notice
Build & Test / Build Node.js
Testing stopped early after 5 maximum allowed failures.
[Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation: tests/resource/02-createResource.spec.ts#L58
1) [Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation Error: expect(received).toBe(expected) // Object.is equality Expected: 201 Received: 400 56 | }); 57 | const response = await resourceCreate.json(); > 58 | expect(resourceCreate.status()).toBe(201); | ^ 59 | expect(response.didUrlState).toBeDefined(); 60 | expect(response.didUrlState.didUrl).toBeDefined(); 61 | expect(response.didUrlState.state).toBeDefined(); at /home/runner/work/did-registrar/did-registrar/tests/resource/02-createResource.spec.ts:58:35
[Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation: tests/resource/02-createResource.spec.ts#L38
1) [Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'signingRequest') 36 | 37 | test('resource-create. Send the final request for Resource creation', async ({ request }) => { > 38 | const serializedPayload = didUrlState.signingRequest[0].serializedPayload; | ^ 39 | const serializedBytes = Buffer.from(serializedPayload, 'base64'); 40 | const signature = sign(privKeyBytes, serializedBytes); 41 | at /home/runner/work/did-registrar/did-registrar/tests/resource/02-createResource.spec.ts:38:41
[Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation: tests/resource/02-createResource.spec.ts#L38
1) [Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'signingRequest') 36 | 37 | test('resource-create. Send the final request for Resource creation', async ({ request }) => { > 38 | const serializedPayload = didUrlState.signingRequest[0].serializedPayload; | ^ 39 | const serializedBytes = Buffer.from(serializedPayload, 'base64'); 40 | const signature = sign(privKeyBytes, serializedBytes); 41 | at /home/runner/work/did-registrar/did-registrar/tests/resource/02-createResource.spec.ts:38:41
[Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure: tests/resource/03-updateResource.spec.ts#L15
2) [Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure TypeError: Cannot read properties of undefined (reading 'id') 13 | const payload = await request.post(`/1.0/updateResource`, { 14 | data: { > 15 | did: didPayload.id, | ^ 16 | name: 'ResourceName', 17 | type: 'TextDocument', 18 | content: ['SGVsbG8gV29ybGQ='], at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:15:21
[Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure: tests/resource/03-updateResource.spec.ts#L15
2) [Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'id') 13 | const payload = await request.post(`/1.0/updateResource`, { 14 | data: { > 15 | did: didPayload.id, | ^ 16 | name: 'ResourceName', 17 | type: 'TextDocument', 18 | content: ['SGVsbG8gV29ybGQ='], at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:15:21
[Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure: tests/resource/03-updateResource.spec.ts#L15
2) [Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'id') 13 | const payload = await request.post(`/1.0/updateResource`, { 14 | data: { > 15 | did: didPayload.id, | ^ 16 | name: 'ResourceName', 17 | type: 'TextDocument', 18 | content: ['SGVsbG8gV29ybGQ='], at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:15:21
[Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update: tests/resource/03-updateResource.spec.ts#L40
3) [Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update TypeError: Cannot read properties of undefined (reading 'signingRequest') 38 | 39 | test('resource-update. Send the final request for Resource update', async ({ request }) => { > 40 | const serializedPayload = didUrlState.signingRequest[0].serializedPayload; | ^ 41 | const serializedBytes = Buffer.from(serializedPayload, 'base64'); 42 | const signature = sign(privKeyBytes, serializedBytes); 43 | at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:40:41
[Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update: tests/resource/03-updateResource.spec.ts#L40
3) [Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'signingRequest') 38 | 39 | test('resource-update. Send the final request for Resource update', async ({ request }) => { > 40 | const serializedPayload = didUrlState.signingRequest[0].serializedPayload; | ^ 41 | const serializedBytes = Buffer.from(serializedPayload, 'base64'); 42 | const signature = sign(privKeyBytes, serializedBytes); 43 | at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:40:41
[Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update: tests/resource/03-updateResource.spec.ts#L40
3) [Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: Cannot read properties of undefined (reading 'signingRequest') 38 | 39 | test('resource-update. Send the final request for Resource update', async ({ request }) => { > 40 | const serializedPayload = didUrlState.signingRequest[0].serializedPayload; | ^ 41 | const serializedBytes = Buffer.from(serializedPayload, 'base64'); 42 | const signature = sign(privKeyBytes, serializedBytes); 43 | at /home/runner/work/did-registrar/did-registrar/tests/resource/03-updateResource.spec.ts:40:41
Lint / Broken Markdown links
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build & Test / Build Docker image
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Build & Test / Build Node.js
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Lint / Super Linter
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
🎭 Playwright Run Summary
5 failed [Integration tests] › resource/02-createResource.spec.ts:37:2 › Resource creat workflow › resource-create. Send the final request for Resource creation [Integration tests] › resource/03-updateResource.spec.ts:10:2 › Resource update using relative url › resource-update. Initiate Resource update procedure [Integration tests] › resource/03-updateResource.spec.ts:39:2 › Resource update using relative url › resource-update. Send the final request for Resource update [Integration tests] › resource/03-updateResource.spec.ts:75:2 › Resource update with resource name and resource type › resource-update. Resource update without relativeDidUrl [Integration tests] › resource/03-updateResource.spec.ts:102:2 › Resource update with resource name and resource type › resource-update. Send the final update without relativeDidUrl 15 did not run 17 passed (43.7s)

Artifacts

Produced during runtime
Name Size
cheqd~did-registrar~TASIIJ.dockerbuild
31.4 KB
did-registrar-staging
89.8 MB