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

Function config_with_jwt_ttl

crates/openshell-server/src/lib.rs:1353–1363  ·  view source on GitHub ↗
(ttl_secs: u64)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected