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

Function test_user_principal

crates/openshell-server/src/inference.rs:1003–1013  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1001 }
1002
1003 fn test_user_principal() -> Principal {
1004 Principal::User(UserPrincipal {
1005 identity: Identity {
1006 subject: "user-a".to_string(),
1007 display_name: None,
1008 roles: vec!["openshell-user".to_string()],
1009 scopes: vec![],
1010 provider: IdentityProvider::Oidc,
1011 },
1012 })
1013 }
1014
1015 fn test_sandbox_principal() -> Principal {
1016 Principal::Sandbox(SandboxPrincipal {

Calls

no outgoing calls

Tested by

no test coverage detected