$ python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
$ python3 tests/smoke.py
PASS: lab4 public API scenario; infrastructure and grading evidence remain separate.
# контейнеры до перезапуска:
/mtusi-lab4-api-3 StartedAt=2026-10-02T23:34:55.153397385Z
/mtusi-lab4-api-4 StartedAt=2026-10-02T23:34:55.348327032Z
/mtusi-lab4-seaweedfs-1 StartedAt=2026-10-02T23:32:25.854895161Z
/mtusi-lab4-postgres-1 StartedAt=2026-10-02T23:32:25.588611658Z
/mtusi-lab2-postgres-1 StartedAt=2026-10-02T22:32:35.614573178Z
/mtusi-lab4-valkey-1 StartedAt=2026-10-02T23:32:25.398680344Z
/mtusi-lab2-valkey-1 StartedAt=2026-10-02T22:32:35.599034066Z
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh   (Windows: restart.cmd; проверяются и метаданные, и исходный файл в S3)
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
# контейнеры после перезапуска:
/mtusi-lab4-api-3 StartedAt=2026-10-02T23:39:43.36427692Z
/mtusi-lab4-api-4 StartedAt=2026-10-02T23:39:43.220921592Z
/mtusi-lab4-seaweedfs-1 StartedAt=2026-10-02T23:39:40.130628797Z
/mtusi-lab4-postgres-1 StartedAt=2026-10-02T23:39:39.628503986Z
/mtusi-lab2-postgres-1 StartedAt=2026-10-02T22:32:35.614573178Z
/mtusi-lab4-valkey-1 StartedAt=2026-10-02T23:39:39.858223769Z
/mtusi-lab2-valkey-1 StartedAt=2026-10-02T22:32:35.599034066Z
$ python3 tests/resilience.py --mode failover --action-script scripts/stop-one.sh   (1-я реплика; файл скачивается другой репликой)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 111, "failed_attempts": 0, "first_recovery_seconds": 2.328}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
$ ... (2-я реплика)
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 107, "failed_attempts": 0, "first_recovery_seconds": 2.328}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
$ python -m unittest test_api.py
Ran 12 tests in 2.472s
OK
$ python -m unittest test_idempotency.py
Ran 9 tests in 1.916s
OK
$ python -m unittest test_attachments.py
Ran 11 tests in 4.632s
OK
$ python student-tests/test_topology.py
Ran 6 tests in 1.485s
OK
$ python student-tests/test_s3_failures.py   (остановка S3, сбои БД после записи в S3, reconcile)
Ran 4 tests in 156.651s
OK
