Remove did from signature submission in tests #855
Annotations
10 errors, 1 warning, and 1 notice
Run npm test
Testing stopped early after 5 maximum allowed failures.
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
Run npm test:
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
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run npm test
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)
|
Loading