()
| 503 | |
| 504 | #[test] |
| 505 | fn openshell_all_with_admin_role() { |
| 506 | let id = identity_with_roles_and_scopes(&["openshell-admin"], &["openshell:all"]); |
| 507 | let policy = scoped_policy(); |
| 508 | assert!( |
| 509 | policy |
| 510 | .check(&id, "/openshell.v1.OpenShell/CreateProvider") |
| 511 | .is_ok() |
| 512 | ); |
| 513 | assert!( |
| 514 | policy |
| 515 | .check(&id, "/openshell.v1.OpenShell/ListSandboxes") |
| 516 | .is_ok() |
| 517 | ); |
| 518 | } |
| 519 | |
| 520 | #[test] |
| 521 | fn unknown_method_requires_openshell_all() { |
nothing calls this directly
no test coverage detected