MCPcopy Create free account
hub / github.com/cedar-policy/cedar-java / empty_authorization_call_succeeds

Function empty_authorization_call_succeeds

CedarJavaFFI/src/tests.rs:73–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 #[test]
73 fn empty_authorization_call_succeeds() {
74 let result = call_cedar(
75 "AuthorizationOperation",
76 r#"
77 {
78 "principal" : { "type" : "User", "id" : "alice" },
79 "action" : { "type" : "Photo", "id" : "view" },
80 "resource" : { "type" : "Photo", "id" : "photo" },
81 "policies": {},
82 "entities": [],
83 "context": {}
84 }
85 "#,
86 );
87 assert_authorization_success(&result);
88 }
89
90 #[test]
91 fn test_unspecified_principal_call_succeeds() {

Callers

nothing calls this directly

Calls 2

call_cedarFunction · 0.85

Tested by

no test coverage detected