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