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

Function command_reads_mtls_auth_from_env

crates/openshell-server/src/cli.rs:916–926  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

914
915 #[test]
916 fn command_reads_mtls_auth_from_env() {
917 let _lock = ENV_LOCK
918 .lock()
919 .unwrap_or_else(std::sync::PoisonError::into_inner);
920 let _guard = EnvVarGuard::set("OPENSHELL_ENABLE_MTLS_AUTH", "true");
921
922 let cli =
923 Cli::try_parse_from(["openshell-gateway", "--db-url", "sqlite::memory:"]).unwrap();
924
925 assert!(cli.run.enable_mtls_auth);
926 }
927
928 #[test]
929 fn command_parses_grpc_rate_limit_flags() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected