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

Function file_disable_tls_applies

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

Source from the content-addressed store, hash-verified

1478
1479 #[test]
1480 fn file_disable_tls_applies() {
1481 let _lock = ENV_LOCK
1482 .lock()
1483 .unwrap_or_else(std::sync::PoisonError::into_inner);
1484 let _g = EnvVarGuard::remove("OPENSHELL_DISABLE_TLS");
1485
1486 let (mut args, matches) =
1487 parse_with_args(&["openshell-gateway", "--db-url", "sqlite::memory:"]);
1488 let file = config_file_from_toml(
1489 r"
1490[openshell.gateway]
1491disable_tls = true
1492",
1493 );
1494 merge_file_into_args(&mut args, &file.openshell.gateway, &matches);
1495
1496 assert!(args.disable_tls);
1497 }
1498
1499 #[test]
1500 fn file_ssh_session_ttl_secs_is_parsed() {

Callers

nothing calls this directly

Calls 3

parse_with_argsFunction · 0.85
config_file_from_tomlFunction · 0.85
merge_file_into_argsFunction · 0.85

Tested by

no test coverage detected