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

Function validate_with_level_succeeds

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

Source from the content-addressed store, hash-verified

197
198 #[test]
199 fn validate_with_level_succeeds() {
200 let input = r#" {
201 "schema": {
202 "": {
203 "entityTypes": {
204 "User": {
205 "memberOfTypes": [
206 "UserGroup"
207 ],
208 "shape": {
209 "type": "Record",
210 "attributes": {
211 "friend": {
212 "type": "Entity",
213 "name": "User"
214 }
215 }
216 }
217 },
218 "Photo": {
219 "memberOfTypes": [
220 "Album",
221 "Account"
222 ],
223 "shape": {
224 "type": "Record",
225 "attributes": {
226 "owner": {
227 "type": "Entity",
228 "name": "User"
229 }
230 }
231 }
232 },
233 "Album": {
234 "memberOfTypes": [
235 "Album",
236 "Account"
237 ]
238 },
239 "Account": {},
240 "UserGroup": {}
241 },
242 "actions": {
243 "readOnly": {},
244 "readWrite": {},
245 "createAlbum": {
246 "appliesTo": {
247 "resourceTypes": [
248 "Account",
249 "Album"
250 ],
251 "principalTypes": [
252 "User"
253 ]
254 }
255 },
256 "addPhotoToAlbum": {

Callers

nothing calls this directly

Calls 2

call_cedarFunction · 0.85

Tested by

no test coverage detected