Closed bconn98 closed 6 months ago
The bug was that we just verified serde
could parse the config, not that our tool liked the config. Suggesting the following patch to resolve:
diff --git a/src/config/raw.rs b/src/config/raw.rs
index 77963ed..171d1a1 100644
--- a/src/config/raw.rs
+++ b/src/config/raw.rs
@@ -525,6 +525,7 @@ loggers:
let config_str = sample_file[config_start..config_end].trim();
let config = ::serde_yaml::from_str::<RawConfig>(config_str);
- assert!(config.is_ok())
+ assert!(config.is_ok());
+ assert!(crate::init_raw_config(config.unwrap()).is_ok());
}
}
The following config is deserialized as valid and should not. Discovered while testing #332