Исправлен сломанный unit-тест docker parser в docker.rs

This commit is contained in:
2026-05-12 11:33:32 +05:00
parent f8c6f2e92d
commit ed786f165f
+12
View File
@@ -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() {