(ttl_secs: u64)
| 1351 | #[test] |
| 1352 | fn kubernetes_sandbox_jwt_expiry_disabled_warns_for_zero_ttl() { |
| 1353 | fn config_with_jwt_ttl(ttl_secs: u64) -> Config { |
| 1354 | let mut config = Config::new(None); |
| 1355 | config.gateway_jwt = Some(openshell_core::GatewayJwtConfig { |
| 1356 | signing_key_path: "/tmp/signing.pem".into(), |
| 1357 | public_key_path: "/tmp/public.pem".into(), |
| 1358 | kid_path: "/tmp/kid".into(), |
| 1359 | gateway_id: "openshell".to_string(), |
| 1360 | ttl_secs, |
| 1361 | }); |
| 1362 | config |
| 1363 | } |
| 1364 | |
| 1365 | assert!(kubernetes_sandbox_jwt_expiry_disabled( |
| 1366 | &config_with_jwt_ttl(0) |
nothing calls this directly
no outgoing calls
no test coverage detected