test(grpc-data): A4 live scenarios part 1 harness — run-owned opc-plc --alm, native alarm + 2 referencing equipment + 3 condition mappings, UNS-only origin principal, no-grant consumer principal; probe condition-records; node-probe alert-transitions; conditions_scenarios.py (A01/A02/A04/A05/A08)

This commit is contained in:
Joseph Doherty
2026-11-25 01:05:53 -05:00
parent 283790a646
commit 304e8b1b7d
6 changed files with 704 additions and 6 deletions
@@ -2,8 +2,30 @@
# SOURCE exports gain AlarmSubscribe and the SOURCE equipment gets one scripted alarm (`ScalarHigh`, scalar > 100).
# The dev DataConnections__ConditionKeySecret is already set on both source services in compose.yml.
# Without this file the rig is the unchanged v1 fixture.
#
# A4 live scenarios: a RUN-OWNED opc-plc `--alm` simulator (`opcplc`, same pinned image as the OpcUaClient integration
# fixture, tests/Drivers/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.IntegrationTests/Docker/docker-compose.yml) for the SOURCE
# OpcUaClient driver's native alarm. Run-owned rather than the shared 10.100.0.35:50000 fixture because (a) the rig's
# endpoint guard admits only run-owned service DNS (implementation plan: "validate resolved compose/seed has no shared-host
# endpoints") and (b) the scenarios acknowledge/comment upstream conditions, which must not leak into a shared simulator.
# It carries the run labels, so `rig.py down` removes it with everything else. No published port.
x-labels: &labels
otopcua.grpc-data.run: ${GRPC_DATA_RUN_ID:?run id required}
otopcua.grpc-data.fixture: "v1"
services:
seeder:
environment:
GRPC_DATA_CONDITIONS: "1"
opcplc:
image: mcr.microsoft.com/iotedge/opc-plc:2.14.10
labels: *labels
networks: [rig]
command: ["--pn=50000", "--ut", "--aa", "--alm"]
source-1:
depends_on:
opcplc: {condition: service_started}
source-2:
depends_on:
opcplc: {condition: service_started}