From bde6cce2fc6bcc8d0da6e55708c62e1e4fb57920 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Wed, 11 Nov 2026 01:32:38 -0500 Subject: [PATCH] test(infra): plain opc-plc fixture healthcheck uses bash /dev/tcp (#817) The opc-plc image ships no netstat, so the old check left otopcua-opc-plc permanently unhealthy. Same probe as the NAT fixture (27302314). Redeployed to /opt/otopcua-opcuaclient on the shared docker host; reports healthy. --- .../Docker/docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/docker-compose.yml b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/docker-compose.yml index 18849ce10..8b8f83c16 100644 --- a/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/docker-compose.yml +++ b/tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/docker-compose.yml @@ -38,7 +38,9 @@ services: # opc-plc doesn't expose an HTTP health endpoint by default; use a TCP # probe via a shell the base image ships with. The fixture does its own # TCP probe but healthcheck surfaces status in `docker ps` for humans. - test: ["CMD-SHELL", "netstat -an | grep -q ':50000.*LISTEN' || exit 1"] + # #817: bash's /dev/tcp, NOT netstat — the image ships no netstat, so the old + # `netstat -an | grep` check left the container permanently "unhealthy" (same fix as nat/, 27302314). + test: ["CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/50000"] interval: 5s timeout: 2s retries: 10