lab7: BROKER_URL из окружения, Redis operator для регрессии ACL, исправления тестов, no-new-privileges tempo-init; перенос исправлений lab6
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user