# persistence: public persistence test incl. S3, OpenBao (+ operator unseal) + proof of real restarts (make test-persistence)
# date: 2026-11-07 15:35:41, commit: 5bfc53a + uncommitted changes
# command: python student-tests/run_persistence.py
# exit code: 0, 74.7 s

before: container, ID, started at
  api-1                        api-1  2026-11-07T12:32:21Z
  api-2                        api-2  2026-11-07T12:32:21Z
  dispatcher                   dispatcher  2026-11-07T12:25:52Z
  janitor                      janitor  2026-11-07T12:25:52Z
  lb                           lb  2026-11-07T12:25:52Z
  openbao                      openbao  2026-11-07T12:25:30Z
  otel-collector               otel-collect  2026-11-07T12:25:52Z
  otel-gate                    otel-gate  2026-11-07T12:25:52Z
  postgres                     postgres  2026-11-07T12:25:30Z
  prometheus                   prometheus  2026-11-07T12:25:30Z
  rabbitmq                     rabbitmq  2026-11-07T12:25:30Z
  redis                        redis  2026-11-07T12:25:30Z
  s3                           s3  2026-11-07T12:33:40Z
  worker                       worker  2026-11-07T12:25:52Z
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 73.0 s): container, ID, started at, restarted?
  api-1                        api-1  2026-11-07T12:35:38Z  same container: True, restarted: True
  api-2                        api-2  2026-11-07T12:35:38Z  same container: True, restarted: True
  dispatcher                   dispatcher  2026-11-07T12:35:38Z  same container: True, restarted: True
  janitor                      janitor  2026-11-07T12:35:38Z  same container: True, restarted: True
  lb                           lb  2026-11-07T12:35:38Z  same container: True, restarted: True
  openbao                      openbao  2026-11-07T12:34:54Z  same container: True, restarted: True
  otel-collector               otel-collect  2026-11-07T12:35:38Z  same container: True, restarted: True
  otel-gate                    otel-gate  2026-11-07T12:35:38Z  same container: True, restarted: True
  postgres                     postgres  2026-11-07T12:34:54Z  same container: True, restarted: True
  prometheus                   prometheus  2026-11-07T12:34:54Z  same container: True, restarted: True
  rabbitmq                     rabbitmq  2026-11-07T12:34:54Z  same container: True, restarted: True
  redis                        redis  2026-11-07T12:34:54Z  same container: True, restarted: True
  s3                           s3  2026-11-07T12:34:54Z  same container: True, restarted: True
  worker                       worker  2026-11-07T12:35:38Z  same container: True, restarted: True
PASS: the hook restarted postgres, redis, s3, rabbitmq, openbao, api, janitor, dispatcher, worker, lb, otel-gate, otel-collector, prometheus (all api replicas; same containers, new start time); data, the attachment bytes and the old token survived
