forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL, сессии Basic/Bearer, Redis-кэш, тесты и отчёт
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user