v0.1.0-pre.061

This commit is contained in:
2026-07-28 18:41:30 +02:00
parent c7bad46f50
commit f40fb78817
527 changed files with 4598 additions and 4114 deletions

View File

@@ -1,5 +1,5 @@
// file: kb-config/src/settings.rs
// version: 16
// version: 17
//! Typed configuration models shared by applications and workers.
@@ -1448,6 +1448,23 @@ mod tests {
assert!(result.is_err());
}
#[test]
fn example_config_separates_runtime_postgres_profiles() {
let value = parse_example_value();
assert_eq!(
value["profiles"][0]["database"]["postgres"]["url"],
serde_json::Value::String("${KB_POSTGRES_DEVNET_URL}".to_string())
);
assert_eq!(
value["profiles"][1]["database"]["postgres"]["url"],
serde_json::Value::String("${KB_POSTGRES_MAINNET_URL}".to_string())
);
assert_eq!(
value["profiles"][2]["database"]["postgres"]["url"],
serde_json::Value::String("${KB_POSTGRES_MAINNET_URL}".to_string())
);
}
#[test]
fn schema_rejects_profile_enabled_field() {
let mut value = parse_example_value();