()
| 170 | |
| 171 | #[test] |
| 172 | fn user_can_access_user_methods() { |
| 173 | let id = identity_with_roles(&["openshell-user"]); |
| 174 | let policy = default_policy(); |
| 175 | assert!( |
| 176 | policy |
| 177 | .check(&id, "/openshell.v1.OpenShell/ListSandboxes") |
| 178 | .is_ok() |
| 179 | ); |
| 180 | } |
| 181 | |
| 182 | #[test] |
| 183 | fn user_cannot_access_admin_methods() { |
nothing calls this directly
no test coverage detected