Исправлен сломанный unit-тест docker parser в docker.rs
This commit is contained in:
@@ -311,6 +311,18 @@ mod tests {
|
||||
"443/udp": [{ "HostIp": "0.0.0.0", "HostPort": "443" }]
|
||||
}
|
||||
}
|
||||
}
|
||||
]"#;
|
||||
let got = parse_udp_port_path_from_inspect(raw, 443).expect("parse inspect");
|
||||
assert_eq!(
|
||||
got,
|
||||
PublishedUdpPortPath {
|
||||
host_port: 443,
|
||||
container_ip: "172.29.172.2".to_string(),
|
||||
container_port: 443,
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_udp_port_prefers_host_port_match() {
|
||||
|
||||
Reference in New Issue
Block a user