Files
mtusi2026lab2/evidence/logout-cache.txt
T

28 lines
1.3 KiB
Plaintext

# 2026-10-22T10:10Z, Redis приостановлен процессным сигналом (в Docker: docker compose pause/unpause redis)
$ python student-tests/logout_cache.py
ok - session is warmed up in cache
== Redis приостановлен ==
$ kill -STOP 4026
ok - logout is NOT confirmed while cache cannot be invalidated (got 503, expected 503)
$ kill -CONT 4026
== Redis восстановлен ==
ok - unconfirmed logout left the session consistent and valid (got 200)
ok - retry logout after Redis recovery -> 204 (got 204)
ok - old token after confirmed logout -> 401, no stale cache copy (got 401)
ok - old token still rejected on repeat (got 401)
6 passed, 0 failed
# Для сравнения: та же проверка на версии ДО исправления (commit dbdb66456a)
ok - session is warmed up in cache
== Redis приостановлен ==
$ kill -STOP 6663
FAIL - logout is NOT confirmed while cache cannot be invalidated (got 204, expected 503)
$ kill -CONT 6663
== Redis восстановлен ==
FAIL - after a 204 the old token is rejected after Redis recovery (got 200)
FAIL - old token after confirmed logout -> 401, no stale cache copy (got 200)
FAIL - old token still rejected on repeat (got 200)
1 passed, 4 failed