CI #1623
ci.yaml
on: schedule
Generate test matrix
18s
Lint
1m 24s
Matrix: test
Check test results
0s
Annotations
3 errors
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getDecisionLogEntry > looks up an decision log entry by call ID:
private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected undefined to deeply equal { …(6) }
- Expected:
Object {
"auditTrail": Object {
"effectivePolicies": Object {
"resource.document.v1": Object {
"driver": "disk",
"source": "document.yaml",
},
"resource.document.v1/test": Object {
"driver": "disk",
"source": "test/document.yaml",
},
},
},
"callId": "01J9QE9QXA227WVGH4063AYQA7",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
"userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"timestamp": Any<Date>,
}
+ Received:
undefined
❯ src/matrix-cerbos/admin.test.ts:518:31
❯ Module.retry src/helpers.ts:267:14
❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13
❯ src/matrix-cerbos/admin.test.ts:513:15
|
Test (Cerbos 0.37.0 | Node 22)
Process completed with exit code 1.
|
Check test results
Process completed with exit code 1.
|