From 273023144b65d0f9e202f7680a4c99c72a519142 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Tue, 10 Nov 2026 22:54:00 -0500 Subject: [PATCH] =?UTF-8?q?test(infra):=20NAT=20fixture=20healthcheck=20us?= =?UTF-8?q?es=20bash=20/dev/tcp=20=E2=80=94=20the=20opc-plc=20image=20has?= =?UTF-8?q?=20no=20netstat=20(#813)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Docker/nat/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/nat/docker-compose.yml b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/nat/docker-compose.yml index aff9bca04..ccb40f66b 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/nat/docker-compose.yml +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/nat/docker-compose.yml @@ -41,7 +41,9 @@ services: # this server's cert) is deliberately not automatic — that is what the secure test pins. - "--aa" healthcheck: - test: ["CMD-SHELL", "netstat -an | grep -q ':50000.*LISTEN' || exit 1"] + # The image ships no netstat (the sibling ../docker-compose.yml healthcheck is permanently "unhealthy" for that + # reason); bash's /dev/tcp is there. + test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/50000"] interval: 5s timeout: 2s retries: 10