{
    "$comment": "Copy this file to e2e-config.json and replace the NodeIds with the ones your Config DB publishes. Fields named `opcUaUrl` override the -OpcUaUrl parameter on test-all.ps1 per-driver. Omit a top-level key to skip that driver.",

    "modbus": {
        "$comment": "Port 5020 matches tests/.../Modbus.IntegrationTests/Docker/docker-compose.yml — `docker compose --profile standard up -d`.",
        "endpoint": "10.100.0.35:5020",
        "bridgeNodeId": "ns=2;s=Modbus/HR200",
        "opcUaUrl": "opc.tcp://localhost:4840"
    },

    "abcip": {
        "$comment": "ab_server listens on port 44818 (default CIP/EIP). `docker compose --profile controllogix up -d`.",
        "gateway": "ab://10.100.0.35:44818/1,0",
        "family": "ControlLogix",
        "tagPath": "TestDINT",
        "bridgeNodeId": "ns=2;s=AbCip/TestDINT"
    },

    "ablegacy": {
        "$comment": "Works against ab_server --profile slc500 (Docker fixture) or real SLC/MicroLogix/PLC-5 hardware. `/1,0` cip-path is required for the Docker fixture; real hardware accepts an empty path — e.g. `ab://10.0.1.50:44818/`.",
        "gateway": "ab://10.100.0.35/1,0",
        "plcType": "Slc500",
        "address": "N7:5",
        "bridgeNodeId": "ns=2;s=AbLegacy/N7_5"
    },

    "s7": {
        "$comment": "Port 1102 matches tests/.../S7.IntegrationTests/Docker/docker-compose.yml (python-snap7 needs non-priv port). `docker compose --profile s7_1500 up -d`. Real S7 PLCs listen on 102.",
        "endpoint": "10.100.0.35:1102",
        "cpu": "S71500",
        "slot": 0,
        "address": "DB1.DBW0",
        "bridgeNodeId": "ns=2;s=S7/DB1_DBW0"
    },

    "focas": {
        "$comment": "Gated behind FOCAS_TRUST_WIRE=1 for real-CNC runs, or pass -ProfileName to run against the focas-mock Docker fixture. Managed wire client — no native dependencies.",
        "host": "192.168.1.20",
        "port": 8193,
        "address": "R100",
        "bridgeNodeId": "ns=2;s=Focas/R100"
    },

    "twincat": {
        "$comment": "Gated behind TWINCAT_TRUST_WIRE=1 — needs XAR or standalone TwinCAT Router NuGet reachable at -AmsNetId.",
        "amsNetId": "127.0.0.1.1.1",
        "amsPort": 851,
        "symbolPath": "MAIN.iCounter",
        "bridgeNodeId": "ns=2;s=TwinCAT/MAIN_iCounter"
    },

    "galaxy": {
        "$comment": "Galaxy (MXAccess) driver. Has no per-driver CLI — all stages go through otopcua-cli against the published NodeIds. Seven stages: probe / source read / virtual-tag bridge / subscribe-sees-change / reverse write / alarm fires / history read. The driver is now the in-process GalaxyDriver (DriverType = 'GalaxyMxGateway') talking gRPC to a separately-installed mxaccessgw at http://localhost:5120 by default — override via the DriverInstance row's DriverConfig. PR 7.2 retired the legacy 'Galaxy' DriverType + OtOpcUaGalaxyHost service.",
        "sourceNodeId": "ns=2;s=p7-smoke-tag-source",
        "virtualNodeId": "ns=2;s=p7-smoke-vt-derived",
        "alarmNodeId": "ns=2;s=p7-smoke-al-overtemp",
        "alarmTriggerValue": "75",
        "changeWaitSec": 10,
        "alarmWaitSec": 10,
        "historyLookbackSec": 3600
    },

    "opcuaclient": {
        "$comment": "OPC UA Client (gateway) driver. Default opc-plc Docker fixture exposes ns=3;s=FastUInt1 as a ticker. The `bridgeNodeId` is the local mirror of remoteNodeId after the OpcUaClient driver's DiscoverAsync runs — dev-specific. Stages 5/7/8 are opt-in: supply writable* NodeIds to enable reverse-bridge, alarmNodeId to enable alarm, historyNodeId to enable history (opc-plc does not historize by default — a Prosys / UA Expert sample server is needed for stage 8).",
        "remoteUrl": "opc.tcp://10.100.0.35:50000",
        "remoteNodeId": "ns=3;s=FastUInt1",
        "bridgeNodeId": "ns=2;s=OpcUaClient/FastUInt1",
        "bridgeRootNodeId": "ns=2;s=OpcUaClient",
        "browseDepth": 3,
        "browseMinNodes": 5,
        "changeWaitSec": 8,
        "writableRemoteNodeId": "",
        "writableBridgeNodeId": "",
        "alarmNodeId": "",
        "historyNodeId": ""
    },

    "phase7": {
        "$comment": "Virtual tags + scripted alarms. The VirtualNodeId must resolve to a server-side virtual tag whose script reads the modbus InputNodeId and writes VT = input * 2. The AlarmNodeId is the ConditionId of a scripted alarm that fires when VT > 100.",
        "modbusEndpoint": "127.0.0.1:5502",
        "inputNodeId": "ns=2;s=Modbus/HR100",
        "virtualNodeId": "ns=2;s=Virtual/VT_DoubledHR100",
        "alarmNodeId": "ns=2;s=Alarm/HR100_High"
    }
}
