MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / empty_roles_rejected

Function empty_roles_rejected

crates/openshell-server/src/auth/authz.rs:216–224  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

214
215 #[test]
216 fn empty_roles_rejected() {
217 let id = identity_with_roles(&[]);
218 let policy = default_policy();
219 assert!(
220 policy
221 .check(&id, "/openshell.v1.OpenShell/ListSandboxes")
222 .is_err()
223 );
224 }
225
226 #[test]
227 fn empty_role_names_skip_rbac() {

Callers

nothing calls this directly

Calls 2

identity_with_rolesFunction · 0.85
default_policyFunction · 0.85

Tested by

no test coverage detected