forked from mtusi2026/mtusi2026lab2
6 lines
657 B
Plaintext
6 lines
657 B
Plaintext
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
Command, from a Linux container joined to the compose network, because Windows Python cannot execute scripts/restart.sh (WinError 193):
|
|
docker run --rm --network mtusilab2_lab -v /var/run/docker.sock:/var/run/docker.sock -v "$PWD:/work" -w /work alpine:3.24.1 sh -c "apk add --no-cache python3 docker-cli docker-cli-compose && chmod +x scripts/restart.sh && python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh --base-url http://api:8080"
|
|
The hook restarts api, postgres and redis and does not remove volumes.
|
|
Date: 2026-10-23
|