feat(ups): #455 shutdown chain — dry-run plan pages, dual-gate arm [#790]
ci / lint (push) Successful in 1m19s
ci / lint (push) Successful in 1m19s
Plan data from live qm inventory (7 hosts). Execution wiring deferred until PVE API tokens + founder ordering review. 4 regression tests. Meat: https://projects.knownelement.com/issues/790#note-4970
This commit is contained in:
@@ -65,5 +65,15 @@ t "runtime-low covers Tripp Lite" \
|
||||
t "runtime-low status check maps per-UPS" \
|
||||
"sed -n '/id: pfv_plant_ups_runtime_low/,/^ mode:/p' automations.yaml | grep -q 'status_map'"
|
||||
|
||||
echo "=== UPS shutdown chain (#790 — dry-run is the shipped mode) ==="
|
||||
t "shutdown chain package present, dry-run default ON" \
|
||||
"grep -q 'id: pfv_ups_shutdown_plan' packages/ups_shutdown.yaml && grep -A4 'pfv_ups_shutdown_dry_run:' packages/ups_shutdown.yaml | grep -q 'initial: true'"
|
||||
t "armed switch default OFF" \
|
||||
"grep -A4 'pfv_ups_shutdown_armed:' packages/ups_shutdown.yaml | grep -q 'initial: false'"
|
||||
t "plan covers all seven hypervisors" \
|
||||
"for h in tsys1 tsys3 tsys4 tsys5 tsys6 tsys7 tsys9; do grep -q \$h packages/ups_shutdown.yaml || exit 1; done"
|
||||
t "pfv-bms VM 100 ordered last of the VMs (#455)" \
|
||||
"grep -q 'pfv-bms VM 100 LAST' packages/ups_shutdown.yaml"
|
||||
|
||||
echo "=== SDLC SUITE: $FAIL failures ==="
|
||||
exit "$FAIL"
|
||||
|
||||
Reference in New Issue
Block a user