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

Function parses_gateway_auth_config

crates/openshell-server/src/config_file.rs:393–402  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391
392 #[test]
393 fn parses_gateway_auth_config() {
394 let toml = r"
395[openshell.gateway.auth]
396allow_unauthenticated_users = true
397";
398 let tmp = write_tmp(toml);
399 let file = load(tmp.path()).expect("valid auth config parses");
400 let auth = file.openshell.gateway.auth.expect("auth config");
401 assert!(auth.allow_unauthenticated_users);
402 }
403
404 #[test]
405 fn rejects_database_url_in_file() {

Callers

nothing calls this directly

Calls 3

write_tmpFunction · 0.85
loadFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected