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

Function command_reads_server_san_from_env

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

Source from the content-addressed store, hash-verified

901
902 #[test]
903 fn command_reads_server_san_from_env() {
904 let _lock = ENV_LOCK
905 .lock()
906 .unwrap_or_else(std::sync::PoisonError::into_inner);
907 let _guard = EnvVarGuard::set("OPENSHELL_SERVER_SAN", "*.apps.example.com");
908
909 let cli =
910 Cli::try_parse_from(["openshell-gateway", "--db-url", "sqlite::memory:"]).unwrap();
911
912 assert_eq!(cli.run.server_sans, vec!["*.apps.example.com".to_string()]);
913 }
914
915 #[test]
916 fn command_reads_mtls_auth_from_env() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected