forked from mtusi2026/mtusi2026lab7
lab7: Argon2id из env (замер bench/argon2_bench.py), лимит неудачных входов в Valkey (429 + Retry-After), cap_drop ALL и no-new-privileges, X-Instance-Id = случайный alias
This commit is contained in:
@@ -273,7 +273,7 @@ def test_replay_after_the_serving_replica_is_stopped(api, pair):
|
||||
key = uuid.uuid4().hex
|
||||
first = api.post_message(alice, chat, {"text": "до остановки"}, key=key)
|
||||
served_by = first.headers["x-instance-id"]
|
||||
replica = next(r for r in running_replicas() if r["hostname"] == served_by)
|
||||
replica = next(r for r in running_replicas() if r["instance"] == served_by)
|
||||
with replica_stopped(replica):
|
||||
for _ in range(5):
|
||||
again = Api().post_message(alice, chat, {"text": "до остановки"}, key=key)
|
||||
|
||||
Reference in New Issue
Block a user