test: add dev m3 hardware loop smoke
This commit is contained in:
@@ -43,3 +43,34 @@ patch-panel state application, real or simulator box observation, persisted
|
||||
audit events, and evidence records. That future work must preserve the same
|
||||
wiring contract and must keep routing decisions under `hwlab-patch-panel`
|
||||
ownership instead of mutating another box directly.
|
||||
|
||||
## DEV Runtime Smoke
|
||||
|
||||
Use this command only for the DEV simulator runtime:
|
||||
|
||||
```sh
|
||||
node scripts/dev-m3-hardware-loop-smoke.mjs --live --confirm-dev --confirmed-non-production
|
||||
```
|
||||
|
||||
The smoke writes `reports/dev-gate/dev-m3-hardware-loop.json`. It first checks
|
||||
the frozen DEV endpoint, `http://74.48.78.17:6667`, and stops at the first
|
||||
critical blocker from `docs/dev-acceptance-matrix.md`. When DEV ingress is not
|
||||
observable, the report is `blocked` and the script does not run the live
|
||||
`do.write true -> di.read true` operation.
|
||||
|
||||
If DEV ingress is reachable, the script requires explicit direct DEV simulator
|
||||
targets through these environment variables:
|
||||
|
||||
```text
|
||||
HWLAB_DEV_BOX_SIMU_1_URL
|
||||
HWLAB_DEV_BOX_SIMU_2_URL
|
||||
HWLAB_DEV_GATEWAY_SIMU_1_URL
|
||||
HWLAB_DEV_GATEWAY_SIMU_2_URL
|
||||
HWLAB_DEV_PATCH_PANEL_URL
|
||||
```
|
||||
|
||||
Those targets must be HWLAB DEV simulator services, not UniDesk substitutes.
|
||||
The script then checks two box simulators, two gateway simulators, active
|
||||
patch-panel wiring for `box-simu-1 DO1 -> box-simu-2 DI1`, a live direct call
|
||||
that reads `DI1=true`, and returned audit/evidence identifiers. Fixture-backed
|
||||
local M3 output is never accepted as live DEV evidence.
|
||||
|
||||
Reference in New Issue
Block a user