forked from mtusi2026/mtusi2026lab3
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
Review fixes, 2026-10-16. API behind haproxy:3.0.11-alpine.
|
|
|
|
$ python3 student-tests/review_regressions.py
|
|
PASS: non-ASCII Bearer returns 401/challenge; malformed JSON returns contract Error/400
|
|
|
|
$ python3 student-tests/readiness_failover.py
|
|
PASS: api-a ready=503, api-b ready=200; 40/40 live and 20/20 registrations use api-b
|
|
PASS: database access restored; both API replicas returned to LB
|
|
|
|
$ make test
|
|
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
|
|
|
|
$ python3 student-tests/idempotency_concurrency.py
|
|
PASS: concurrent idempotency through load balancer
|
|
|
|
$ make test-rolling
|
|
{"instances_before": 2, "instances_after": 2, "successful_writes": 318, "failed_writes": 1, "elapsed_seconds": 12.26, "successful_rps": 25.938, "successful_latency_ms": {"p50": 6.652, "p95": 13.944, "p99": 50.718}}
|
|
PASS: sequential API replacement preserved writes through load balancer
|
|
|
|
$ make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
|
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
|
|
|
|
$ make check
|
|
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
|
|
|
|
$ make validate PYTHON=.venv/bin/python
|
|
PASS: full OpenAPI 3.1 and JSON Schema validation; application NOT tested.
|
|
|
|
Final docker compose ps: api-a, api-b, load_balancer and postgres healthy.
|
|
Historical track1 results were NOT rerun and refer to Nginx, not HAProxy.
|