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