Files
mtusi2026lab2/evidence/expiry.txt
T

9 lines
340 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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