# persistence: public persistence test incl. S3 + proof of real restarts (make test-persistence)
# date: 2026-10-22 14:25:42, commit: c942c61 + uncommitted changes
# command: python.exe student-tests/run_persistence.py
# exit code: 0, 47.9 s

before: container, ID, started at
  messenger-lab4-api-1         343119df2488  2026-10-22T11:23:03.387600262Z
  messenger-lab4-api-2         d590adc21943  2026-10-22T11:23:24.689368662Z
  messenger-lab4-janitor-1     d50ac08018c1  2026-10-22T11:18:17.423165415Z
  messenger-lab4-lb-1          0d5b262b09b3  2026-10-22T11:03:30.971491955Z
  messenger-lab4-postgres-1    84794c3ac2c5  2026-10-22T11:24:52.672662576Z
  messenger-lab4-redis-1       3130fd5532b0  2026-10-22T11:24:32.055032931Z
  messenger-lab4-s3-1          122ad603e3be  2026-10-22T11:20:52.20174809Z
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 47.0 s): container, ID, started at, restarted?
  messenger-lab4-api-1         343119df2488  2026-10-22T11:25:36.201352227Z  same container: True, restarted: True
  messenger-lab4-api-2         d590adc21943  2026-10-22T11:25:36.073058122Z  same container: True, restarted: True
  messenger-lab4-janitor-1     d50ac08018c1  2026-10-22T11:25:32.252887377Z  same container: True, restarted: True
  messenger-lab4-lb-1          0d5b262b09b3  2026-10-22T11:25:40.174401907Z  same container: True, restarted: True
  messenger-lab4-postgres-1    84794c3ac2c5  2026-10-22T11:24:56.311470336Z  same container: True, restarted: True
  messenger-lab4-redis-1       3130fd5532b0  2026-10-22T11:24:56.150164333Z  same container: True, restarted: True
  messenger-lab4-s3-1          122ad603e3be  2026-10-22T11:25:06.0234901Z  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
