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

Function rejects_database_url_in_file

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

Source from the content-addressed store, hash-verified

403
404 #[test]
405 fn rejects_database_url_in_file() {
406 let toml = r#"
407[openshell.gateway]
408database_url = "sqlite::memory:"
409"#;
410 let tmp = write_tmp(toml);
411 let err = load(tmp.path()).expect_err("database_url must be rejected");
412 assert!(matches!(
413 err,
414 ConfigFileError::SecretInFile {
415 field: "database_url",
416 ..
417 }
418 ));
419 }
420
421 #[test]
422 fn rejects_unknown_gateway_field() {

Callers

nothing calls this directly

Calls 3

write_tmpFunction · 0.85
loadFunction · 0.85
pathMethod · 0.80

Tested by

no test coverage detected