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

Function openshell_all_with_admin_role

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

scoped_policyFunction · 0.85

Tested by

no test coverage detected