Captures uncommitted work that lived in the working tree on
v2-mxgw-integration but was orthogonal to the migration. Stashed
during the v2-mxgw merge to master (2026-04-30) and replanted here on
a feature branch off master so it's git-visible rather than living in
the stash list.
Two distinct buckets:
1. Tracked fixture/config refinements (10 files, ~36 lines):
- scripts/e2e/test-opcuaclient.ps1
- src/ZB.MOM.WW.OtOpcUa.Admin/appsettings.json
- 5 docker-compose.yml under tests/.../IntegrationTests/Docker/
(AbCip, Modbus, OpcUaClient, S7)
- 4 fixture .cs files (AbServerFixture, ModbusSimulatorFixture,
OpcPlcFixture, Snap7ServerFixture)
2. Untracked driver-gaps queue artifacts (~8000 lines):
- docs/plans/{abcip,ablegacy,focas,opcuaclient,s7,twincat}-plan.md
— per-driver gap plans
- docs/featuregaps.md — cross-cutting analysis
- docs/v2/focas-deployment.md, docs/v2/implementation/focas-simulator-plan.md
- followup.md — auto/driver-gaps queue follow-ups
- scripts/queue/ — PR-queue automation tooling (12 files including
pr-manifest.yaml at 1473 lines)
This commit is a snapshot for recoverability — review and split into
focused PRs (or discard) before merging anywhere downstream.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
opc-plc Docker fixture
Microsoft Industrial IoT's opc-plc
— pinned Docker image that stands up an OPC UA server at
opc.tcp://localhost:50000 with step-up counters, random nodes, alarm
simulation, and other canonical simulated shapes. Replaces the PowerShell
launcher pattern used by the Modbus / S7 fixtures — Docker is the launcher
here since opc-plc ships pre-containerized.
| File | Purpose |
|---|---|
docker-compose.yml |
Service definition for otopcua-opc-plc — image pin, port map, command flags. |
| (this file) | How to run it. |
Install
Docker Desktop (Windows) or the docker CLI + daemon (Linux/macOS). Per
CLAUDE.md Phase 1 decision #134 the dev box already has Docker Desktop
configured with the WSL 2 backend — nothing new to install.
Run
From the repo root:
docker compose -f tests\ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests\Docker\docker-compose.yml up
Or from this folder:
docker compose up
First run pulls the image (~250 MB). Startup takes ~5-10 seconds; the
healthcheck in the compose file surfaces ready state in docker ps.
To run detached (CI pattern):
docker compose up -d
Stop with docker compose down (removes the container) or docker compose stop
(keeps it for fast restart).
Endpoint
- Default:
opc.tcp://localhost:50000 - Override by setting
OPCUA_SIM_ENDPOINTbeforedotnet test— e.g. point at a real OPC UA server in the lab, or at a different Docker host.
What opc-plc advertises
Command flags in docker-compose.yml enable:
--pn=50000— OPC UA endpoint on port 50000--ut— unsecured transport endpoint advertised (SecurityPolicy=None). Secured policies are still on the endpoint list;--utjust adds an unsecured option.--aa— auto-accept client certs (opc-plc's cert trust store lives inside the container + resets each spin-up, so without this the driver's first contact would be rejected).--alm— alarm simulation enabled; opc-plc publishesTripAlarmType,ExclusiveDeviationAlarmType,NonExclusiveLevelAlarmType, andDialogConditionTypeevents.
Not turned on (but available via compose-file tweaks):
--daa— disable anonymous auth; forces username or cert tokens. Flip on when username-auth / cert-auth smoke tests land.--fn/--fr/--ft— fast-node variants (100 / 1 000 / 10 000 Hz update rates) for subscription-stress coverage. Not needed for smoke.--sn/--sr— slow-node / special-shape coverage.
Run the integration tests
In a separate shell, with the simulator running:
cd C:\Users\dohertj2\Desktop\lmxopcua
dotnet test tests\ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests
Tests auto-skip with a clear SkipReason when localhost:50000 isn't
reachable within 2 seconds (OpcPlcFixture).
Known limitations
opc-plc uses the OPCFoundation.NetStandard stack internally — same as
our driver. That means bugs common to the stack itself are not caught
by this fixture; the follow-up to add open62541/open62541 as a second
independent-stack image (task tracked in #215's follow-ups) would close
that.
See docs/drivers/OpcUaClient-Test-Fixture.md
for the full coverage map + what's still trusted from field deployments.