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

Function no_openshell_scopes_denied

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

Source from the content-addressed store, hash-verified

470
471 #[test]
472 fn no_openshell_scopes_denied() {
473 let id = identity_with_roles_and_scopes(&["openshell-user"], &[]);
474 let policy = scoped_policy();
475 assert!(
476 policy
477 .check(&id, "/openshell.v1.OpenShell/ListSandboxes")
478 .is_err()
479 );
480 }
481
482 #[test]
483 fn openshell_all_with_user_role() {

Callers

nothing calls this directly

Calls 2

scoped_policyFunction · 0.85

Tested by

no test coverage detected