chore(deps): update dependency @grpc/grpc-js to ^1.12.0 #1612
ci.yaml
on: pull_request
Generate test matrix
21s
Lint
1m 40s
Matrix: test
Check test results
0s
Annotations
101 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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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": "01J9J82B5YJ5ACD3VZGNDFKY34",
"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": "01J9J832SS25X6BYBH385WPQBZ",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J832SS25X6BYBH385WPQBZ",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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": "01J9J82BR7M6WJFX05BYV4E57W",
"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": "01J9J833ENCHS0RDS1S863ZNGT",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J833ENCHS0RDS1S863ZNGT",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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": "01J9J82DVGK4GN9D3DG75A66T6",
"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": "01J9J8359ZXPB2WMB6B59E7PMD",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J8359ZXPB2WMB6B59E7PMD",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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": "01J9J82DGPY9GZT9NGSAPXDNSP",
"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": "01J9J834ZDZJHYX1B0YNM5J290",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J834ZDZJHYX1B0YNM5J290",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F18AKFF74C1PAR14BF9",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F18AKFF74C1PAR14BF9",
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82F18AKFF74C1PAR14BF9",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F18AKFF74C1PAR14BF9",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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 > 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": "01J9J82F18AKFF74C1PAR14BF9",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82F18AKFF74C1PAR14BF9",
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82F18AKFF74C1PAR14BF9",
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82F18AKFF74C1PAR14BF9",
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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": "01J9J836FGVPHE2MR4ASSBMDRQ",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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) > 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": "01J9J836FGVPHE2MR4ASSBMDRQ",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82D86CV073Y7RA7564XKG",
"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": "01J9J8351DB5W5FQ78XGSF0XKR",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J8351DB5W5FQ78XGSF0XKR",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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": "01J9J82F7WGKXM3TK1EN0S1VC4",
"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": "01J9J836P1JA4APQC8EKXD4BDF",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J836P1JA4APQC8EKXD4BDF",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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": "01J9J82KFPKZRYEY716BJ34RAR",
"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": "01J9J83B231A997JA7TZKPZB7D",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J83B231A997JA7TZKPZB7D",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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 > 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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82MNZXM57AHB3H72NWKTX",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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 > 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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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": "01J9J82MNZXM57AHB3H72NWKTX",
"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": "01J9J82MS1ZY8E4YBM8HKAVN4G",
"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": "01J9J83CAAQ2YWQQDMZP3AJF33",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J83CAAQ2YWQQDMZP3AJF33",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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 > 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": "01J9J83C8AM7PTYA2VVY2C1EWW",
"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.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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": "01J9J83C8AM7PTYA2VVY2C1EWW",
"metadata": Object {
"foo": Array [
"bar",
],
},
"method": Object {
"error": undefined,
"input": Object {
"action": "edit",
"auxData": Object {
"jwt": Object {
"delete": true,
},
},
"principal": Object {
"attr": Object {
"country": Object {
"alpha2": "",
"alpha3": "NZL",
},
},
"id": "me@example.com",
"policyVersion": "1",
"roles": Array [
"USER",
],
"scope": "test",
},
"requestId": "plan-resources-unconditional",
"resource": Object {
"attr": Object {
"owner": "me@example.com",
},
"kind": "document",
"policyVersion": "1",
"scope": "test",
},
},
"name": "PlanResources",
"output": Object {
"action": "edit",
"kind": "KIND_ALWAYS_ALLOWED",
"policyVersion": "1",
"requestId": "plan-resources-unconditional",
"scope": "test",
"validationErrors": Array [
Object {
"message": "does not match pattern '[A-Z]{2}'",
"path": "/country/alpha2",
"source": "SOURCE_PRINCIPAL",
},
],
},
},
"peer": Object {
"address": StringMatching /^\d{1,3}(?:\.\d{1,3}){3}:\d{1,5}$/,
"authInfo": "",
"forwardedFor": StringContaining "1.1.1.1, 2.2.2.2, 3.3.3.3",
- "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.11.3",
+ "userAgent": "cerbos-sdk-javascript-grpc/0.18.3 grpc-node-js/1.12.0",
},
"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.
|