test: Add credential API tests [DEV-3238] (#442) #1951
Annotations
6 errors, 2 warnings, and 1 notice
Run Playwright tests:
tests/e2e/credential/issue-verify-flow.spec.ts#L99
1) [Logged In User Tests] › credential/issue-verify-flow.spec.ts:87:1 › Verify a jsonld credential
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 400
97 | const result = await response.json();
98 | expect(response).toBeOK();
> 99 | expect(response.status()).toBe(StatusCodes.OK);
| ^
100 | expect(result.verified).toBe(true);
101 | });
102 |
at /home/runner/work/credential-service/credential-service/tests/e2e/credential/issue-verify-flow.spec.ts:99:28
|
Run Playwright tests:
tests/e2e/credential/issue-verify-flow.spec.ts#L99
1) [Logged In User Tests] › credential/issue-verify-flow.spec.ts:87:1 › Verify a jsonld credential
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 400
97 | const result = await response.json();
98 | expect(response).toBeOK();
> 99 | expect(response.status()).toBe(StatusCodes.OK);
| ^
100 | expect(result.verified).toBe(true);
101 | });
102 |
at /home/runner/work/credential-service/credential-service/tests/e2e/credential/issue-verify-flow.spec.ts:99:28
|
Run Playwright tests:
tests/e2e/credential/issue-verify-flow.spec.ts#L99
1) [Logged In User Tests] › credential/issue-verify-flow.spec.ts:87:1 › Verify a jsonld credential
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 400
97 | const result = await response.json();
98 | expect(response).toBeOK();
> 99 | expect(response.status()).toBe(StatusCodes.OK);
| ^
100 | expect(result.verified).toBe(true);
101 | });
102 |
at /home/runner/work/credential-service/credential-service/tests/e2e/credential/issue-verify-flow.spec.ts:99:28
|
Run Playwright tests:
tests/e2e/credential/suspension-flow.spec.ts#L104
2) [Logged In User Tests] › credential/suspension-flow.spec.ts:92:1 › Verify a credential status after reinstating
Error: expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
102 | expect(response).toBeOK();
103 | expect(response.status()).toBe(StatusCodes.OK);
> 104 | expect(result.unsuspended).toBe(true);
| ^
105 |
106 | const verificationResponse = await request.post(`/credential/verify?verifyStatus=true`, {
107 | data: JSON.stringify({
at /home/runner/work/credential-service/credential-service/tests/e2e/credential/suspension-flow.spec.ts:104:29
|
Run Playwright tests:
tests/e2e/credential/suspension-flow.spec.ts#L103
2) [Logged In User Tests] › credential/suspension-flow.spec.ts:92:1 › Verify a credential status after reinstating
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 500
101 | const result = await response.json();
102 | expect(response).toBeOK();
> 103 | expect(response.status()).toBe(StatusCodes.OK);
| ^
104 | expect(result.unsuspended).toBe(true);
105 |
106 | const verificationResponse = await request.post(`/credential/verify?verifyStatus=true`, {
at /home/runner/work/credential-service/credential-service/tests/e2e/credential/suspension-flow.spec.ts:103:28
|
Run Playwright tests
Process completed with exit code 1.
|
Run Playwright tests:
[Logged In User Tests] › credential/suspension-flow.spec.ts#L1
[Logged In User Tests] › credential/suspension-flow.spec.ts took 22.0s
|
Run Playwright tests:
[Logged In User Tests] › credential/revocation-flow.spec.ts#L1
[Logged In User Tests] › credential/revocation-flow.spec.ts took 16.7s
|
Run Playwright tests
2 failed
[Logged In User Tests] › credential/issue-verify-flow.spec.ts:87:1 › Verify a jsonld credential
[Logged In User Tests] › credential/suspension-flow.spec.ts:92:1 › Verify a credential status after reinstating
67 did not run
17 passed (1.3m)
|
The logs for this run have expired and are no longer available.
Loading