forked from mtusi2026/mtusi2026lab3
31 lines
1.7 KiB
Plaintext
31 lines
1.7 KiB
Plaintext
2026-11-12. Windows, Python 3.13.5, Docker Desktop с Linux-контейнерами.
|
||
PUBLIC_PORT=18083, BASE_URL=http://127.0.0.1:18083
|
||
|
||
> python scripts/check_contract.py
|
||
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
||
|
||
> python scripts/validate_openapi.py
|
||
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
||
|
||
> python tests/smoke.py --base-url http://127.0.0.1:18083
|
||
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
||
|
||
> python tests/resilience.py --mode persistence --action-script scripts/restart.cmd
|
||
Hook: docker compose restart db cache api-a api-b lb.
|
||
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||
|
||
> python tests/resilience.py --mode failover --action-script scripts/stop-one.cmd
|
||
{"observed_instances_before": 2, "successful_writes": 106, "failed_attempts": 4, "first_recovery_seconds": 1.658}
|
||
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
|
||
|
||
> python student-tests/check_replicas.py
|
||
PASS: 8 concurrent replays through both replicas, 1 message
|
||
PASS: stop api-a, 5.8 write/s, errors=3, survivor=0.085s
|
||
PASS: stop api-b, 3.4 write/s, errors=5, survivor=0.048s
|
||
PASS: recreate api-a, 8.2 write/s, errors=2, survivor=0.130s
|
||
PASS: recreate api-b, 8.0 write/s, errors=3, survivor=0.094s
|
||
|
||
write/s считается за весь короткий сценарий. survivor — время до первого
|
||
успешного ответа оставшейся реплики после начала действия. Публичный failover
|
||
отдельно измеряет первый ответ после завершения hook.
|