ЛР 2: PostgreSQL, сессии Basic/Bearer, Redis-кэш, тесты и отчёт

This commit is contained in:
Anatoly Sanzharovskiy
2026-10-15 18:30:21 +03:00
parent 65003b6119
commit dbdb66456a
35 changed files with 2115 additions and 40 deletions
+8
View File
@@ -0,0 +1,8 @@
# 2026-10-15T10:02Z, второй экземпляр API с SESSION_TTL_SECONDS=2 (в compose: api-ttl на 8081)
$ python student-tests/expiry.py
ok - login -> 201
ok - expires_at is about 2s ahead (got 2.00s)
ok - token works before expiry
ok - expired token -> 401 (cache does not extend the session)
4 passed, 0 failed