Add revocation tests #1877
Annotations
6 errors and 1 notice
Run Playwright tests:
tests/credential/suspension-flow.spec.ts#L44
1) [chromium] › credential/suspension-flow.spec.ts:30:1 › Verify a credential's suspension status
Error: expect(received).toBe(expected) // Object.is equality
Expected: false
Received: undefined
42 | expect(response.status()).toBe(StatusCodes.OK);
43 | expect(result.verified).toBe(true);
> 44 | expect(result.suspended).toBe(false);
| ^
45 | });
46 |
47 | test(' Verify a credential status after suspension', async ({ request }) => {
at /home/runner/work/credential-service/credential-service/tests/credential/suspension-flow.spec.ts:44:27
|
Run Playwright tests:
tests/credential/suspension-flow.spec.ts#L42
1) [chromium] › credential/suspension-flow.spec.ts:30:1 › Verify a credential's suspension status
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 400
40 | const result = await response.json();
41 | expect(response).toBeOK();
> 42 | expect(response.status()).toBe(StatusCodes.OK);
| ^
43 | expect(result.verified).toBe(true);
44 | expect(result.suspended).toBe(false);
45 | });
at /home/runner/work/credential-service/credential-service/tests/credential/suspension-flow.spec.ts:42:28
|
Run Playwright tests:
tests/credential/suspension-flow.spec.ts#L42
1) [chromium] › credential/suspension-flow.spec.ts:30:1 › Verify a credential's suspension status
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 400
40 | const result = await response.json();
41 | expect(response).toBeOK();
> 42 | expect(response.status()).toBe(StatusCodes.OK);
| ^
43 | expect(result.verified).toBe(true);
44 | expect(result.suspended).toBe(false);
45 | });
at /home/runner/work/credential-service/credential-service/tests/credential/suspension-flow.spec.ts:42:28
|
Run Playwright tests:
tests/credential/credential.spec.ts#L30
2) [chromium] › credential/credential.spec.ts:22:1 › Revoke credential for user with testnet role but network is mainnet
Error: expect(received).toBe(expected) // Object.is equality
Expected: 403
Received: 400
28 | });
29 | expect(response).not.toBeOK();
> 30 | expect(response.status()).toBe(StatusCodes.FORBIDDEN);
| ^
31 | expect(await response.text()).toEqual(expect.stringContaining(DEFAULT_DOES_NOT_HAVE_PERMISSIONS));
32 | });
33 |
at /home/runner/work/credential-service/credential-service/tests/credential/credential.spec.ts:30:28
|
Run Playwright tests:
tests/credential/issue-verify-flow.spec.ts#L23
3) [chromium] › credential/issue-verify-flow.spec.ts:13:1 › Issue a jwt credential ──────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: 200
Received: 403
21 | jwtCredential = await response.json();
22 | expect(response).toBeOK();
> 23 | expect(response.status()).toBe(StatusCodes.OK);
| ^
24 | expect(jwtCredential.proof.type).toBe('JwtProof2020');
25 | });
26 |
at /home/runner/work/credential-service/credential-service/tests/credential/issue-verify-flow.spec.ts:23:28
|
Run Playwright tests
Process completed with exit code 1.
|
Run Playwright tests
1 failed
[chromium] › credential/suspension-flow.spec.ts:30:1 › Verify a credential's suspension status
1 interrupted
[chromium] › credential/revocation-flow.spec.ts:45:1 › Verify a credential status after revocation
2 flaky
[chromium] › credential/credential.spec.ts:22:1 › Revoke credential for user with testnet role but network is mainnet
[chromium] › credential/issue-verify-flow.spec.ts:13:1 › Issue a jwt credential ───────────────
42 did not run
11 passed (36.0s)
|
The logs for this run have expired and are no longer available.
Loading