This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Отказы зависимостей и expiry на стенде
|
||||
# date: 2026-10-21T08:43:49Z
|
||||
# commit: 1d5c1e0 (dirty)
|
||||
# date: 2026-10-21T12:19:38Z
|
||||
# commit: e20a5a4
|
||||
|
||||
## 1. Redis остановлен: полный публичный smoke проходит через PostgreSQL
|
||||
$ docker compose stop redis
|
||||
@@ -25,13 +25,13 @@ $ docker compose stop postgres
|
||||
Container messenger-lab2-postgres-1 Stopped
|
||||
|
||||
$ python3 scripts/probe.py status GET /health/ready
|
||||
GET /health/ready (anonymous) -> 503 {"error": {"code": "unavailable", "message": "database unavailable", "request_id": "a7bb2a68-b382-43cd-b9da-be82a9cf1ab0"}}
|
||||
GET /health/ready (anonymous) -> 503 {"error": {"code": "unavailable", "message": "database unavailable", "request_id": "e9f781a6-0da4-4a29-9ac6-151a07009e89"}}
|
||||
|
||||
$ python3 scripts/probe.py status GET /api/v1/chats
|
||||
GET /api/v1/chats (anonymous) -> 401 {"error": {"code": "unauthorized", "message": "missing or invalid session", "request_id": "ae589529-992e-4f89-afc9-aef87a9ea438"}}
|
||||
GET /api/v1/chats (anonymous) -> 401 {"error": {"code": "unauthorized", "message": "missing or invalid session", "request_id": "f4bc2df3-97e1-49db-a974-d09e111ab95d"}}
|
||||
|
||||
$ python3 scripts/probe.py status GET /api/v1/chats Bearer unknown-token
|
||||
GET /api/v1/chats (Bearer unknown-token) -> 503 {"error": {"code": "unavailable", "message": "database unavailable", "request_id": "8f2da39f-9f7e-4416-b07b-8c0f5ebc745c"}}
|
||||
GET /api/v1/chats (Bearer unknown-token) -> 503 {"error": {"code": "unavailable", "message": "database unavailable", "request_id": "325ae150-9377-4b74-9f91-ffc943c346c3"}}
|
||||
|
||||
$ docker compose start postgres
|
||||
Container messenger-lab2-secrets-init-1 Starting
|
||||
@@ -59,7 +59,7 @@ $ docker compose exec -T api printenv SESSION_TTL_SECONDS
|
||||
|
||||
$ python3 scripts/probe.py expiry 2
|
||||
register -> 201
|
||||
login -> 201 expires_at: 2026-10-21T08:44:17.766Z
|
||||
login -> 201 expires_at: 2026-10-21T12:20:02.340Z
|
||||
GET /api/v1/users/me (fresh) -> 200
|
||||
GET /api/v1/users/me (after 3s) -> 401
|
||||
|
||||
|
||||
Reference in New Issue
Block a user