ЛР2: PostgreSQL, сессии, Redis-кэш, трек 5.2

This commit is contained in:
2026-10-26 21:20:34 +03:00
parent 65003b6119
commit cf4a7ad142
56 changed files with 4209 additions and 14 deletions
+8
View File
@@ -0,0 +1,8 @@
# 2026-10-26T17:32:07Z native stand; Linux 6.18.44-fc-v153 x86_64; nproc=2; mem=8027MiB
$ python3 student-tests/test_expiry.py
## session expiry, SESSION_TTL_SECONDS=2 (http://localhost:8081)
PASS expires_at = now + SESSION_TTL_SECONDS 0.54s remaining 2.00s
PASS token valid before expiry, 401 Bearer after (cache warmed) 3.59s
PASS re-login after expiry issues a new valid session 3.79s
summary: 3 passed, 0 failed
exit=0