forked from mtusi2026/mtusi2026lab3
ЛР 3: HAProxy + 2 реплики, общая идемпотентность, rolling update
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0ab3a341aa
commit
a71c582195
@@ -0,0 +1,20 @@
|
||||
python : Container mtusi-lab3-redis-1 Paused
|
||||
строка:1 знак:23
|
||||
+ ... cache.txt { python student-tests\logout_cache.py --base-url http://lo ...
|
||||
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
+ CategoryInfo : NotSpecified: ( Container mtusi-lab3-redis-1 Paused :String) [], RemoteException
|
||||
+ FullyQualifiedErrorId : NativeCommandError
|
||||
|
||||
Container mtusi-lab3-redis-1 Unpaused
|
||||
ok - session is warmed up in cache
|
||||
== Redis яЁшюёЄрэютыхэ ==
|
||||
$ docker compose --env-file .env pause redis
|
||||
ok - logout is NOT confirmed while cache cannot be invalidated (got 503, expected 503)
|
||||
$ docker compose --env-file .env unpause redis
|
||||
== 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
|
||||
Reference in New Issue
Block a user