ЛР 2: закрыть уровень 4

Завершить PostgreSQL, Redis-сессии, миграции, таймауты и диагностику. Зафиксировать собственные тесты и доказательства финального прогона: 43 PASS, 0 FAIL, 0 SKIP; 768 HTTP-запросов без ошибок. Добавить официальный отчёт с запуском, архитектурой, SQL-планами и ограничениями. PR отложен до завершения уровня 5.
This commit is contained in:
2026-10-28 13:30:26 +03:00
parent 65003b6119
commit 834876c938
288 changed files with 107634 additions and 19 deletions
@@ -0,0 +1,75 @@
{
"scope": "DIAGNOSTIC ONLY: sessions inserted into isolated test DB, login endpoint NOT validated by these probes",
"results": [
{
"name": "fixture session authenticates user",
"status": "PASS",
"detail": null
},
{
"name": "X-User-Id cannot override bearer",
"status": "PASS",
"detail": null
},
{
"name": "unknown token is unauthorized",
"status": "PASS",
"detail": null
},
{
"name": "missing auth has one JSON error",
"status": "FAIL",
"detail": "invalid response JSON"
},
{
"name": "expired stored token is unauthorized",
"status": "PASS",
"detail": null
},
{
"name": "outsider chat stays hidden",
"status": "PASS",
"detail": null
},
{
"name": "sender derives from bearer",
"status": "PASS",
"detail": null
},
{
"name": "history ascending with keyset",
"status": "PASS",
"detail": null
},
{
"name": "contract logout path returns 204",
"status": "FAIL",
"detail": "DELETE /api/v1/auth/sessions/current: expected [204], received 404"
},
{
"name": "full restart preserves seeded token/messages/deadline",
"status": "PASS",
"detail": null
},
{
"name": "live stays available during PostgreSQL outage",
"status": "PASS",
"detail": null
},
{
"name": "ready returns 503 during PostgreSQL outage",
"status": "FAIL",
"detail": "GET /health/ready: expected [503], received 200"
},
{
"name": "valid bearer returns 503 during PostgreSQL outage",
"status": "FAIL",
"detail": "GET /api/v1/users/me: expected [503], received 500"
},
{
"name": "session recovers after PostgreSQL outage",
"status": "PASS",
"detail": null
}
]
}