From ed786f165f2522654a3eb355605b011cc0fb3601 Mon Sep 17 00:00:00 2001 From: Crimson Date: Tue, 12 May 2026 11:33:32 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=81=D0=BB=D0=BE=D0=BC=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20unit-=D1=82=D0=B5=D1=81=D1=82=20docker=20parser=20?= =?UTF-8?q?=D0=B2=20docker.rs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- traffic_core/src/docker.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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() {