stack-orchestrator/stack_orchestrator/data/stacks/test-restart
pranav 93b0d79998 rename restart-hook test artifacts to just restart
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>
2026-04-28 10:52:51 +00:00
..
deploy rename restart-hook test artifacts to just restart 2026-04-28 10:52:51 +00:00
README.md rename restart-hook test artifacts to just restart 2026-04-28 10:52:51 +00:00
stack.yml rename restart-hook test artifacts to just restart 2026-04-28 10:52:51 +00:00

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:

  1. deploy create → asserts commands.py was copied into <deployment>/hooks/.
  2. deployment start → asserts the marker file contains the v1 string.
  3. Modifies commands.py in the stack-source working tree (v1 → v2).
  4. deployment restart → asserts the new commands.py was 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.