()
| 307 | |
| 308 | #[test] |
| 309 | fn validate_entities_succeeds() { |
| 310 | let json_data = json!( |
| 311 | { |
| 312 | "entities":[ |
| 313 | { |
| 314 | "uid": { |
| 315 | "type": "PhotoApp::User", |
| 316 | "id": "alice" |
| 317 | }, |
| 318 | "attrs": { |
| 319 | "userId": "897345789237492878", |
| 320 | "personInformation": { |
| 321 | "age": 25, |
| 322 | "name": "alice" |
| 323 | }, |
| 324 | }, |
| 325 | "parents": [ |
| 326 | { |
| 327 | "type": "PhotoApp::UserGroup", |
| 328 | "id": "alice_friends" |
| 329 | }, |
| 330 | { |
| 331 | "type": "PhotoApp::UserGroup", |
| 332 | "id": "AVTeam" |
| 333 | } |
| 334 | ] |
| 335 | }, |
| 336 | { |
| 337 | "uid": { |
| 338 | "type": "PhotoApp::Photo", |
| 339 | "id": "vacationPhoto.jpg" |
| 340 | }, |
| 341 | "attrs": { |
| 342 | "private": false, |
| 343 | "account": { |
| 344 | "__entity": { |
| 345 | "type": "PhotoApp::Account", |
| 346 | "id": "ahmad" |
| 347 | } |
| 348 | } |
| 349 | }, |
| 350 | "parents": [] |
| 351 | }, |
| 352 | { |
| 353 | "uid": { |
| 354 | "type": "PhotoApp::UserGroup", |
| 355 | "id": "alice_friends" |
| 356 | }, |
| 357 | "attrs": {}, |
| 358 | "parents": [] |
| 359 | }, |
| 360 | { |
| 361 | "uid": { |
| 362 | "type": "PhotoApp::UserGroup", |
| 363 | "id": "AVTeam" |
| 364 | }, |
| 365 | "attrs": {}, |
| 366 | "parents": [] |
nothing calls this directly
no test coverage detected