()
| 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() { |
nothing calls this directly
no test coverage detected