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>
111 lines
2.9 KiB
YAML
111 lines
2.9 KiB
YAML
# Modbus integration-test fixture — pymodbus simulator.
|
|
#
|
|
# One service per profile. Bring up only the profile a test class needs;
|
|
# they all bind :5020 on the host so can't run concurrently. The compose
|
|
# `profiles:` feature gates which service spins up via `--profile <name>`.
|
|
#
|
|
# Usage:
|
|
# docker compose --profile standard up
|
|
# docker compose --profile dl205 up
|
|
# docker compose --profile mitsubishi up
|
|
# docker compose --profile s7_1500 up
|
|
services:
|
|
standard:
|
|
profiles: ["standard"]
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: otopcua-pymodbus:3.13.0
|
|
container_name: otopcua-pymodbus-standard
|
|
labels:
|
|
project: lmxopcua
|
|
restart: "no"
|
|
ports:
|
|
- "5020:5020"
|
|
command: [
|
|
"pymodbus.simulator",
|
|
"--modbus_server", "srv",
|
|
"--modbus_device", "dev",
|
|
"--json_file", "/fixtures/standard.json"
|
|
]
|
|
|
|
dl205:
|
|
profiles: ["dl205"]
|
|
image: otopcua-pymodbus:3.13.0
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: otopcua-pymodbus-dl205
|
|
labels:
|
|
project: lmxopcua
|
|
restart: "no"
|
|
ports:
|
|
- "5020:5020"
|
|
command: [
|
|
"pymodbus.simulator",
|
|
"--modbus_server", "srv",
|
|
"--modbus_device", "dev",
|
|
"--json_file", "/fixtures/dl205.json"
|
|
]
|
|
|
|
mitsubishi:
|
|
profiles: ["mitsubishi"]
|
|
image: otopcua-pymodbus:3.13.0
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: otopcua-pymodbus-mitsubishi
|
|
labels:
|
|
project: lmxopcua
|
|
restart: "no"
|
|
ports:
|
|
- "5020:5020"
|
|
command: [
|
|
"pymodbus.simulator",
|
|
"--modbus_server", "srv",
|
|
"--modbus_device", "dev",
|
|
"--json_file", "/fixtures/mitsubishi.json"
|
|
]
|
|
|
|
s7_1500:
|
|
profiles: ["s7_1500"]
|
|
image: otopcua-pymodbus:3.13.0
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: otopcua-pymodbus-s7_1500
|
|
labels:
|
|
project: lmxopcua
|
|
restart: "no"
|
|
ports:
|
|
- "5020:5020"
|
|
command: [
|
|
"pymodbus.simulator",
|
|
"--modbus_server", "srv",
|
|
"--modbus_device", "dev",
|
|
"--json_file", "/fixtures/s7_1500.json"
|
|
]
|
|
|
|
# Exception-injection profile. Runs the standalone pure-stdlib Modbus/TCP
|
|
# server shipped as exception_injector.py instead of the pymodbus
|
|
# simulator — pymodbus naturally emits only exception codes 02 + 03, and
|
|
# this profile extends integration coverage to the other codes the
|
|
# driver's MapModbusExceptionToStatus table handles (01, 04, 05, 06,
|
|
# 0A, 0B). Rules are driven by exception_injection.json.
|
|
exception_injection:
|
|
profiles: ["exception_injection"]
|
|
image: otopcua-pymodbus:3.13.0
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: otopcua-modbus-exception-injector
|
|
labels:
|
|
project: lmxopcua
|
|
restart: "no"
|
|
ports:
|
|
- "5020:5020"
|
|
command: [
|
|
"python", "/fixtures/exception_injector.py",
|
|
"--config", "/fixtures/exception_injection.json"
|
|
]
|