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

Function missing_bearer_yields_none

crates/openshell-server/src/auth/k8s_sa.rs:928–936  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

926
927 #[tokio::test]
928 async fn missing_bearer_yields_none() {
929 let fake = Arc::new(FakeResolver::returning(Ok(None)));
930 let auth = K8sServiceAccountAuthenticator::new(fake);
931 let result = auth
932 .authenticate(&http::HeaderMap::new(), ISSUE_SANDBOX_TOKEN_PATH)
933 .await
934 .unwrap();
935 assert!(result.is_none());
936 }
937
938 #[tokio::test]
939 async fn resolver_returning_none_falls_through() {

Callers

nothing calls this directly

Calls 1

authenticateMethod · 0.45

Tested by

no test coverage detected