Дата: 2026-10-23
Команда:

python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh --base-url http://127.0.0.1:8080

Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.

scripts/restart.sh выполняет:
docker compose --env-file .env -f compose.yaml restart api postgres valkey

Volumes не удаляются. После теста на месте:
mtusi-lab3_pgdata
mtusi-lab3_valkeydata

docker compose ps после hook: api-1 и api-2 Up (healthy), postgres Up (healthy), valkey Up (healthy).
Контейнеры те же (CREATED не сброшен), процессы перезапущены (Up несколько секунд).
Migrate повторно данные не заливает.
