v0.1.0-pre.061
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user