date: 2026-10-28T22:38:18Z  commit: dde113b  image: sha256:946c868dc7f4

$ make test BASE_URL=http://localhost:18083
python3 tests/smoke.py --base-url "http://localhost:18083" 
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.

$ python3 scripts/probe.py check --rounds 20   # 40 GET одним токеном + 20 раундов по 8 POST с одним ключом
{"instances_one_token": {"d078349e7c33": 20, "1de09c7a8c9d": 20}, "same_key": {"rounds": 20, "parallel": 8, "statuses": {"201": 160}, "instances": {"d078349e7c33": 80, "1de09c7a8c9d": 80}, "identical_bodies_rounds": 20, "single_copy_rounds": 20, "conflict_rounds": 20}, "pass": true}

$ make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://localhost:18083
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 131, "failed_attempts": 0, "first_recovery_seconds": 2.728}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.

$ docker ps -a --filter label=com.docker.compose.service=api
mtusi2026lab3-api-6 Exited (0) 12 seconds ago
mtusi2026lab3-api-1 Up About a minute (healthy)

$ make restore
 Container mtusi2026lab3-api-1  Healthy
mtusi2026lab3-api-1 Up About a minute (healthy)
mtusi2026lab3-api-6 Up 2 seconds (healthy)

$ make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:18083
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.

$ make student-test
240 passed, 10 deselected in 19.71s
