Skip to content

Add additional tests #2671

Add additional tests

Add additional tests #2671

Triggered via push October 7, 2024 10:36
Status Failure
Total duration 7m 9s
Artifacts 3

dispatch.yml

on: push
Lint  /  Broken Markdown links
2m 24s
Lint / Broken Markdown links
Lint  /  Super Linter
6m 58s
Lint / Super Linter
Build & Test  /  Build Node.js
6m 48s
Build & Test / Build Node.js
Build & Test  /  Build Docker image
5m 41s
Build & Test / Build Docker image
Release  /  Release Docker image
Release / Release Docker image
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 2 notices
Build & Test / Build Node.js
Testing stopped early after 5 maximum allowed failures.
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L48
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 401 46 | const result = await verifyResponse.json(); 47 | expect(verifyResponse).toBeOK(); > 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); | ^ 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); 51 | }); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:48:34
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L47
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Error: expect(received).toBeOK() Call log: - → POST http://localhost:3000/trust-registry/accreditation/verify - user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.29 Safari/537.36 - accept: */* - accept-encoding: gzip,deflate,br - x-api-key: *** - Content-Type: application/json - content-length: 278 - ← 401 Unauthorized - content-security-policy: default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests - cross-origin-opener-policy: same-origin - cross-origin-resource-policy: same-origin - origin-agent-cluster: ?1 - referrer-policy: no-referrer - strict-transport-security: max-age=15552000; includeSubDomains - x-content-type-options: nosniff - x-dns-prefetch-control: off - x-download-options: noopen - x-frame-options: SAMEORIGIN - x-permitted-cross-domain-policies: none - x-xss-protection: 0 - vary: Origin - content-type: application/json; charset=utf-8 - content-length: 110 - etag: W/"6e-v4iHrgzYzqgCjSyXi0HAcV+mcCk" - date: Mon, 07 Oct 2024 10:41:54 GMT - connection: keep-alive - keep-alive: timeout=5 Response text: {"verified":false,"error":"Invalid Request: Accreditation does not have the permissions for the given schema"} 45 | }); 46 | const result = await verifyResponse.json(); > 47 | expect(verifyResponse).toBeOK(); | ^ 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:47:25
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L1
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Error: end of central directory record signature not found
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L48
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 401 46 | const result = await verifyResponse.json(); 47 | expect(verifyResponse).toBeOK(); > 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); | ^ 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); 51 | }); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:48:34
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L47
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeOK() Call log: - → POST http://localhost:3000/trust-registry/accreditation/verify - user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.29 Safari/537.36 - accept: */* - accept-encoding: gzip,deflate,br - x-api-key: *** - Content-Type: application/json - content-length: 278 - ← 401 Unauthorized - content-security-policy: default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests - cross-origin-opener-policy: same-origin - cross-origin-resource-policy: same-origin - origin-agent-cluster: ?1 - referrer-policy: no-referrer - strict-transport-security: max-age=15552000; includeSubDomains - x-content-type-options: nosniff - x-dns-prefetch-control: off - x-download-options: noopen - x-frame-options: SAMEORIGIN - x-permitted-cross-domain-policies: none - x-xss-protection: 0 - vary: Origin - content-type: application/json; charset=utf-8 - content-length: 110 - etag: W/"6e-v4iHrgzYzqgCjSyXi0HAcV+mcCk" - date: Mon, 07 Oct 2024 10:42:27 GMT - connection: keep-alive - keep-alive: timeout=5 Response text: {"verified":false,"error":"Invalid Request: Accreditation does not have the permissions for the given schema"} 45 | }); 46 | const result = await verifyResponse.json(); > 47 | expect(verifyResponse).toBeOK(); | ^ 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:47:25
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L48
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 401 46 | const result = await verifyResponse.json(); 47 | expect(verifyResponse).toBeOK(); > 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); | ^ 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); 51 | }); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:48:34
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L47
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeOK() Call log: - → POST http://localhost:3000/trust-registry/accreditation/verify - user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.6668.29 Safari/537.36 - accept: */* - accept-encoding: gzip,deflate,br - x-api-key: *** - Content-Type: application/json - content-length: 278 - ← 401 Unauthorized - content-security-policy: default-src 'self';base-uri 'self';font-src 'self' https: data:;form-action 'self';frame-ancestors 'self';img-src 'self' data:;object-src 'none';script-src 'self';script-src-attr 'none';style-src 'self' https: 'unsafe-inline';upgrade-insecure-requests - cross-origin-opener-policy: same-origin - cross-origin-resource-policy: same-origin - origin-agent-cluster: ?1 - referrer-policy: no-referrer - strict-transport-security: max-age=15552000; includeSubDomains - x-content-type-options: nosniff - x-dns-prefetch-control: off - x-download-options: noopen - x-frame-options: SAMEORIGIN - x-permitted-cross-domain-policies: none - x-xss-protection: 0 - vary: Origin - content-type: application/json; charset=utf-8 - content-length: 110 - etag: W/"6e-v4iHrgzYzqgCjSyXi0HAcV+mcCk" - date: Mon, 07 Oct 2024 10:43:02 GMT - connection: keep-alive - keep-alive: timeout=5 Response text: {"verified":false,"error":"Invalid Request: Accreditation does not have the permissions for the given schema"} 45 | }); 46 | const result = await verifyResponse.json(); > 47 | expect(verifyResponse).toBeOK(); | ^ 48 | expect(verifyResponse.status()).toBe(StatusCodes.OK); 49 | expect(result.error).toBe(undefined); 50 | expect(result.verified).toBe(true); at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:47:25
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L1
1) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── Error: end of central directory record signature not found
[Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:73:1 › Issue and verify a accredit accreditation: tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts#L83
2) [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:73:1 › Issue and verify a accredit accreditation Error: expect(received).toBe(expected) // Object.is equality Expected: 200 Received: 400 81 | const { didUrls, accreditation } = await issueResponse.json(); 82 | expect(issueResponse).toBeOK(); > 83 | expect(issueResponse.status()).toBe(StatusCodes.OK); | ^ 84 | expect(accreditation.proof.type).toBe('JwtProof2020'); 85 | expect(accreditation.proof).toHaveProperty('jwt'); 86 | expect(typeof accreditation.issuer === 'string' ? accreditation.issuer : accreditation.issuer.id).toBe( at /home/runner/work/studio/studio/tests/e2e/sequential/accreditation/issue-verify-flow.spec.ts:83:33
Sensitive data should not be used in the ARG or ENV commands: docker/Dockerfile#L81
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "VERIDA_PRIVATE_KEY") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
Sensitive data should not be used in the ARG or ENV commands: docker/Dockerfile#L91
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "STRIPE_WEBHOOK_SECRET") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L100
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L120
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L127
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Sensitive data should not be used in the ARG or ENV commands: docker/Dockerfile#L127
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ENV "API_KEY_EXPIRATION") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L131
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Sensitive data should not be used in the ARG or ENV commands: docker/Dockerfile#L65
SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "COOKIE_SECRET") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L137
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Legacy key/value format with whitespace separator should not be used: docker/Dockerfile#L110
LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
🎭 Playwright Run Summary
1 skipped 60 passed (2.2m)
🎭 Playwright Run Summary
2 failed [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:8:1 › Issue and verify a authorize accreditation [Logged In User Tests] › sequential/accreditation/issue-verify-flow.spec.ts:73:1 › Issue and verify a accredit accreditation 10 did not run 4 passed (2.7m)

Artifacts

Produced during runtime
Name Size
cheqd~studio~TG2SP3.dockerbuild Expired
55.6 KB
playwright-report Expired
8.41 KB
studio-staging Expired
707 MB