changement ip par defaut
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[server]
|
||||
ip = "10.0.0.50"
|
||||
ip = "10.0.0.82"
|
||||
port = 9999
|
||||
|
||||
[protocols.udp]
|
||||
|
||||
@@ -6,7 +6,7 @@ fn test_config_parse_complet() {
|
||||
let mut f = NamedTempFile::new().unwrap();
|
||||
write!(f, r#"
|
||||
[server]
|
||||
ip = "10.0.0.50"
|
||||
ip = "10.0.0.82"
|
||||
port = 9999
|
||||
|
||||
[protocols.udp]
|
||||
@@ -26,7 +26,7 @@ udp = true
|
||||
mqtt = false
|
||||
"#).unwrap();
|
||||
let cfg = nanometrics_agent::config::load(f.path()).unwrap();
|
||||
assert_eq!(cfg.server.ip, "10.0.0.50");
|
||||
assert_eq!(cfg.server.ip, "10.0.0.82");
|
||||
assert_eq!(cfg.server.port, 9999);
|
||||
assert!(cfg.protocols.udp.enabled);
|
||||
assert!(cfg.protocols.mqtt.enabled);
|
||||
@@ -40,7 +40,7 @@ fn test_config_mqtt_absent() {
|
||||
let mut f = NamedTempFile::new().unwrap();
|
||||
write!(f, r#"
|
||||
[server]
|
||||
ip = "10.0.0.50"
|
||||
ip = "10.0.0.82"
|
||||
port = 9999
|
||||
|
||||
[protocols.udp]
|
||||
|
||||
Reference in New Issue
Block a user