# persistence: public persistence test incl. S3 + proof of real restarts (make test-persistence)
# date: 2026-10-21 21:12:49, commit: 2dbed80 + uncommitted changes
# command: python.exe student-tests/run_persistence.py
# exit code: 0, 40.2 s

before: container, ID, started at
  messenger-lab4-api-1         11a93acecaca  2026-10-21T18:11:37.067348364Z
  messenger-lab4-api-2         6128eb268c44  2026-10-21T18:11:36.916459116Z
  messenger-lab4-janitor-1     baefc0e97dff  2026-10-21T18:11:33.313531682Z
  messenger-lab4-lb-1          03697e5fe34c  2026-10-21T18:11:40.981519931Z
  messenger-lab4-postgres-1    f7a6a1ce25a7  2026-10-21T18:11:22.482229396Z
  messenger-lab4-redis-1       b4523b39a0fe  2026-10-21T18:11:22.626999402Z
  messenger-lab4-s3-1          e7cbe6ddfa4a  2026-10-21T18:11:32.264154477Z
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.

PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
after (hook + waiting for readiness took 39.2 s): container, ID, started at, restarted?
  messenger-lab4-api-1         11a93acecaca  2026-10-21T18:12:46.288933033Z  same container: True, restarted: True
  messenger-lab4-api-2         6128eb268c44  2026-10-21T18:12:46.174283308Z  same container: True, restarted: True
  messenger-lab4-janitor-1     baefc0e97dff  2026-10-21T18:12:42.503993973Z  same container: True, restarted: True
  messenger-lab4-lb-1          03697e5fe34c  2026-10-21T18:12:47.684809415Z  same container: True, restarted: True
  messenger-lab4-postgres-1    f7a6a1ce25a7  2026-10-21T18:12:11.527270274Z  same container: True, restarted: True
  messenger-lab4-redis-1       b4523b39a0fe  2026-10-21T18:12:11.368416107Z  same container: True, restarted: True
  messenger-lab4-s3-1          e7cbe6ddfa4a  2026-10-21T18:12:21.264135454Z  same container: True, restarted: True
PASS: the hook restarted postgres, redis, s3 (SeaweedFS), all api replicas, janitor and lb (same containers, new start time); data, the attachment bytes and the old token survived
