lab7: BROKER_URL из окружения, Redis operator для регрессии ACL, исправления тестов, no-new-privileges tempo-init; перенос исправлений lab6

This commit is contained in:
2026-11-12 14:19:15 +03:00
parent b5b55fda89
commit 1c453e9f0a
16 changed files with 104 additions and 33 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ class Uploader:
while not self.stop_ev.is_set():
try:
r = self.c.call('POST', '/api/v1/chats/%s/attachments?filename=u.png' % self.chat['id'], 202,
actor=self.actor, raw=SAMPLE, headers={'Content-Type': 'image/png'})
actor=self.actor, raw=SAMPLE, headers={'Content-Type': 'image/png'}, schema='Attachment')
self.ids.append((time.time(), r['json']['id']))
except Failure:
self.errors += 1
@@ -156,7 +156,7 @@ def main():
# первое задание, принятое после реакции, — когда стало ready (восстановление обработки)
probe_att = c.call('POST', '/api/v1/chats/%s/attachments?filename=after.png' % chat['id'], 202, actor=alice, raw=SAMPLE,
headers={'Content-Type': 'image/png'})['json']
headers={'Content-Type': 'image/png'}, schema='Attachment')['json']
meta = wait_status(c, bob, probe_att['id'], ('ready', 'failed'), timeout=240)
res['processing_restored_seconds_after_response'] = round(time.time() - t_done, 1)
check(meta['status'] == 'ready', 'worker did not recover with the new identity')