banger/internal/daemon
Thales Maciel 5018bc6170
Add regression coverage for VM failure paths
Dangerous lifecycle, store, system, and RPC paths still had little or no automated confidence, and the live smoke harness failed opaquely when guest boot timing drifted. This adds targeted unit coverage for store allocation and decode failures, system helper failure ordering and cleanup, RPC error handling, and daemon lookup/reconcile/editing/stats/preflight edge cases.

It also makes verify.sh wait for daemon-observable VM readiness before SSH, reuse a bounded boot deadline for the SSH phase, and dump VM metadata, logs, tap state, socket state, and NAT rules on timeout so host-level failures are diagnosable instead of surfacing only connection refused.

Validation: go test ./..., go test ./... -cover, bash -n verify.sh. No live ./verify.sh boot was run in this environment.
2026-03-16 15:46:54 -03:00
..
daemon.go Make installed banger self-contained 2026-03-16 14:26:50 -03:00
daemon_test.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
images.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
nat.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
nat_test.go Manage NAT directly from VM records 2026-03-16 13:50:54 -03:00
preflight.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
snapshot.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
snapshot_test.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
vm.go Make runtime defaults portable 2026-03-16 15:30:08 -03:00
vm_test.go Add regression coverage for VM failure paths 2026-03-16 15:46:54 -03:00