# persistence: public persistence test + proof of real restarts (make test-persistence)
# date: 2026-10-14 20:28:03, commit: 0ab3a34 + uncommitted changes
# command: python.exe student-tests/run_persistence.py
# exit code: 0, 9.2 s

before: container, ID, started at
  messenger-lab3-api-3         231a6acf25e5  2026-10-14T17:27:05.347335515Z
  messenger-lab3-api-4         5ef3550d83e5  2026-10-14T17:27:05.632137055Z
  messenger-lab3-lb-1          143799027af8  2026-10-14T17:23:15.482251883Z
  messenger-lab3-postgres-1    94f24029f4b4  2026-10-14T17:27:46.840755333Z
  messenger-lab3-redis-1       b78c2ab71807  2026-10-14T17:27:26.471429301Z
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 8.5 s): container, ID, started at, restarted?
  messenger-lab3-api-3         231a6acf25e5  2026-10-14T17:28:00.882064128Z  same container: True, restarted: True
  messenger-lab3-api-4         5ef3550d83e5  2026-10-14T17:28:00.692590504Z  same container: True, restarted: True
  messenger-lab3-lb-1          143799027af8  2026-10-14T17:28:02.788694335Z  same container: True, restarted: True
  messenger-lab3-postgres-1    94f24029f4b4  2026-10-14T17:27:56.091073554Z  same container: True, restarted: True
  messenger-lab3-redis-1       b78c2ab71807  2026-10-14T17:27:56.26191188Z  same container: True, restarted: True
PASS: the hook restarted postgres, redis, all api replicas and lb (same containers, new start time); data and the old token survived
