Rename the stack and script accordingly:
- test-restart-hook stack → test-restart
- test-restart-hook-multi stack → test-restart-multi
- run-restart-hook-test.sh → run-restart-test.sh
- start-hook-marker file → marker
- pod-repo dirs test-restart-hook-pod-{a,b} → test-restart-pod-{a,b}
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| deploy | ||
| README.md | ||
| stack.yml | ||
README.md
test-restart
E2E test stack used by tests/k8s-deploy/run-restart-test.sh.
The stack ships a small start() hook that writes a versioned marker file
into the deployment directory. The test exercises deployment restart:
deploy create→ assertscommands.pywas copied into<deployment>/hooks/.deployment start→ asserts the marker file contains the v1 string.- Modifies
commands.pyin the stack-source working tree (v1 → v2). deployment restart→ asserts the newcommands.pywas re-copied into<deployment>/hooks/and the marker file now contains the v2 string.
The pod uses a public busybox image that just sleeps; the marker file is
the only thing under test.