forked from mtusi2026/mtusi2026lab3
20 lines
1003 B
Plaintext
20 lines
1003 B
Plaintext
Дата: 2026-10-30
|
|
Команда:
|
|
|
|
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-3 и api-4 Up (healthy), postgres Up (healthy), valkey Up (healthy).
|
|
Контейнеры те же (CREATED не сброшен), процессы перезапущены (Up несколько секунд).
|
|
Повторный migrate («migrations applied») не добавил вторую копию версии:
|
|
001_init.sql — 1 строка, 002_idempotency.sql — 1 строка.
|