diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-14 18:08:40 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-14 18:08:40 -0500 |
| commit | 33579ee72ed97a671a898267555a50fb8411144b (patch) | |
| tree | ed2324b0c81282d4b15033d0e2bde1af68efee4f /docs/scripts | |
| parent | befc7e112aaa706f7fff926cc7337af1aab08171 (diff) | |
| download | archangel-33579ee72ed97a671a898267555a50fb8411144b.tar.gz archangel-33579ee72ed97a671a898267555a50fb8411144b.zip | |
test(install): exercise zfssnapshot wrapper in VM verification
The wrapper had no runtime coverage — bats tests pin pure helpers and arg parsing only, and verify_rollback bypassed it by calling zfs snapshot / zfs rollback directly via SSH. A regression in cmd_create, cmd_rollback, or cmd_delete would only have surfaced in production.
verify_zfssnapshot_wrapper runs after verify_rollback for ZFS configs (no-op for Btrfs) and exercises:
- list confirms @genesis baseline
- create runtime-test — recursive snapshot across all datasets
- echo no | delete --name — confirms the gate aborts (catches the -n vs = regression class)
- echo yes | delete --name — destroys across all datasets, list confirms gone
- create wrapper-rollback + drop sentinel + rollback --name — round-trip restores the sentinel
The function scps the working-tree wrapper to the VM before testing so the run reflects current source rather than what the ISO froze at build time. A regression here fails the test (no warn-only path) — it's the wrapper's only runtime check.
Diffstat (limited to 'docs/scripts')
0 files changed, 0 insertions, 0 deletions
