forked from mtusi2026/mtusi2026lab2
27 lines
1.3 KiB
Plaintext
27 lines
1.3 KiB
Plaintext
# make test-persistence ACTION_SCRIPT=scripts/restart.sh (COMPOSE="podman compose")
|
|
# date: 2026-10-29T22:09:51Z; podman 6.1.0, podman-compose 1.6.0
|
|
|
|
## containers before
|
|
messenger_api_1 id=e8951624fe7a started=2026-10-30 01:09:02.81809688 +0300 MSK
|
|
messenger_postgres_1 id=6aab8ebe96dd started=2026-10-30 01:09:30.742003352 +0300 MSK
|
|
messenger_redis_1 id=7af579a966dd started=2026-10-30 01:09:28.731706375 +0300 MSK
|
|
schema_migrations (version|dirty): 1|f
|
|
rows users|chats|messages: 111|43|60437
|
|
|
|
## test
|
|
python3 tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://localhost: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.
|
|
|
|
## containers after (same IDs, new start time = real restart, volumes kept)
|
|
messenger_api_1 id=e8951624fe7a started=2026-10-30 01:09:54.107586909 +0300 MSK
|
|
messenger_postgres_1 id=6aab8ebe96dd started=2026-10-30 01:09:53.97943161 +0300 MSK
|
|
messenger_redis_1 id=7af579a966dd started=2026-10-30 01:09:54.047665509 +0300 MSK
|
|
schema_migrations (version|dirty): 1|f
|
|
rows users|chats|messages: 114|44|60438 (test adds 3 users, 1 chat, 1 message)
|
|
api log after restart: "msg":"migrations applied"
|
|
|
|
## volumes
|
|
messenger_pgdata
|
|
messenger_redisdata
|