forked from mtusi2026/mtusi2026lab2
feat(app) lab2 prepared for mr
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
$ docker compose --env-file .env --profile checks up -d --wait api-short-ttl
|
||||
Container mtusi2026lab2-postgres-1 Running
|
||||
Container mtusi2026lab2-redis-1 Running
|
||||
Container mtusi2026lab2-api-short-ttl-1 Running
|
||||
Container mtusi2026lab2-redis-1 Waiting
|
||||
Container mtusi2026lab2-postgres-1 Waiting
|
||||
Container mtusi2026lab2-postgres-1 Healthy
|
||||
Container mtusi2026lab2-redis-1 Healthy
|
||||
Container mtusi2026lab2-redis-1 Waiting
|
||||
Container mtusi2026lab2-api-short-ttl-1 Waiting
|
||||
Container mtusi2026lab2-postgres-1 Waiting
|
||||
Container mtusi2026lab2-api-short-ttl-1 Healthy
|
||||
Container mtusi2026lab2-redis-1 Healthy
|
||||
Container mtusi2026lab2-postgres-1 Healthy
|
||||
|
||||
$ python3 scripts/grade4_checks.py --base-url http://172.18.0.1:8080 --short-ttl-url http://172.18.0.1:8081
|
||||
PASS: wrong password -> 401 with Basic challenge
|
||||
PASS: logout revoked the current token (repeat -> 401)
|
||||
PASS: X-User-Id is ignored and grants no access
|
||||
PASS: 12 concurrent registrations of one username -> one 201, eleven 409
|
||||
PASS: failed composite chat creation rolled back completely
|
||||
PASS: SESSION_TTL_SECONDS=2 session expired and was rejected by the main API
|
||||
PASS: redis down: live=200, ready=503, protected=503 (bounded unavailable error, no anonymous access; detected in 4.4s)
|
||||
PASS: redis recovered in 4.0s; same token and confirmed message intact
|
||||
PASS: postgres down: live=200, ready=503, protected=503 (bounded unavailable error, session retained; detected in 2.8s)
|
||||
PASS: postgres recovered in 0.9s; same token and confirmed message intact
|
||||
PASS: grade 4 checks completed
|
||||
Reference in New Issue
Block a user