Skip to content

chore(deps): update dependency @grpc/grpc-js to ^1.11.2 #1547

chore(deps): update dependency @grpc/grpc-js to ^1.11.2

chore(deps): update dependency @grpc/grpc-js to ^1.11.2 #1547

Triggered via pull request September 9, 2024 00:33
Status Failure
Total duration 3m 21s
Artifacts

ci.yaml

on: pull_request
Matrix: test
Check test results
0s
Check test results
Fit to window
Zoom out
Zoom in

Annotations

91 errors
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QC0HK2TZHKQXRRM6YMX", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39ENYXT9NXQ8598F9VFRE", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39ENYXT9NXQ8598F9VFRE", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38QTE0SANWRE0757G0VFD", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39F7HPYPQFQP5TC2479Y3", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39F7HPYPQFQP5TC2479Y3", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38RNHNEJNF8F1ARJD1FJH", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39G74B0K0Y7RPFM912DJW", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39G74B0K0Y7RPFM912DJW", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38TJ96FNXWRTPZDXQRJAY", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39HZT8X96E1WJAWB40GM4", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39HZT8X96E1WJAWB40GM4", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38VBNXXQ4T0X2PX4TV94C", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39JRNBRZEZGRR9F7E63V1", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39JRNBRZEZGRR9F7E63V1", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38XEKCY66C4DFNKA15X7K", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39MRQ5EFF5GJNDPD6NW2E", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39MRQ5EFF5GJNDPD6NW2E", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38YTXJ29WR589JFMFE4KB", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39P63G7J5257RW91KAD5S", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39P63G7J5257RW91KAD5S", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A38WQ2MTE6MG7Q9GP9EQPM", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39M6B6PJSKG6B5BQZV15Q", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39M6B6PJSKG6B5BQZV15Q", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > getDecisionLogEntry > looks up an decision log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L518
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:547:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:555:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listAccessLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L534
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/CheckResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:534:35 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ expectListAccessLogEntries src/matrix-cerbos/admin.test.ts:527:15 ❯ src/matrix-cerbos/admin.test.ts:563:17
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > between > returns entries between timestamps: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > since > returns entries within a duration: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > checkResources > listDecisionLogEntries > tail > returns the last N entries: private/test/src/matrix-cerbos/admin.test.ts#L581
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A39D5YFRYY44ZENMRTFAHP", "metadata": Object { "foo": Array [ "bar", ], }, "method": Object { "error": undefined, "inputs": Array [ Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "me@example.com", }, "id": "mine", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": "them@example.com", }, "id": "theirs", "kind": "document", "policyVersion": "1", "scope": "test", }, }, Object { "actions": Array [ "view", "edit", "delete", ], "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": "check-resources", "resource": Object { "attr": Object { "owner": 123, }, "id": "invalid", "kind": "document", "policyVersion": "1", "scope": "test", }, }, ], "name": "CheckResources", "outputs": Array [ Object { "actions": Object { "delete": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "", }, "edit": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, "view": Object { "effect": "EFFECT_ALLOW", "policy": "resource.document.v1/test", "scope": "test", }, }, "effectiveDerivedRoles": Array [ "OWNER", ], "outputs": Array [ Object {
src/matrix-cerbos/admin.test.ts > Client > admin > 'gRPC' > audit logs > planResources (unconditional) > getAccessLogEntry > looks up an access log entry by call ID: private/test/src/matrix-cerbos/admin.test.ts#L506
AssertionError: expected { …(6) } to deeply equal { …(6) } - Expected + Received Object { "callId": "01J7A3A4HS1H589JX1Y7WKGNCP", "metadata": Object { "foo": Array [ "bar", ], }, "method": "/cerbos.svc.v1.CerbosService/PlanResources", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "statusCode": 0, "timestamp": Any<Date>, } ❯ src/matrix-cerbos/admin.test.ts:506:31 ❯ Module.retry src/helpers.ts:267:14 ❯ retryUntilFound src/matrix-cerbos/admin.test.ts:489:13 ❯ src/matrix-cerbos/admin.test.ts:501:15
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 { …(6) } to deeply equal { …(6) } - Expected + Received 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": "01J7A3A4HS1H589JX1Y7WKGNCP", "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.2 grpc-node-js/1.11.1", + "userAgent": "cerbos-sdk-javascript-grpc/0.18.2 grpc-node-js/1.11.2", }, "timestamp": Any<Date>, } ❯ 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
Check test results
Process completed with exit code 1.