diff --git a/traffic_core/src/docker.rs b/traffic_core/src/docker.rs index f7dc38a..7c37fba 100644 --- a/traffic_core/src/docker.rs +++ b/traffic_core/src/docker.rs @@ -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() {