()
| 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() { |
nothing calls this directly
no outgoing calls
no test coverage detected