Prepare lab 5 grade 4 recovery verification

This commit is contained in:
Artyom
2026-11-06 09:28:01 +03:00
parent 47ffb2d10b
commit b159899d73
5 changed files with 46 additions and 0 deletions
+3
View File
@@ -396,6 +396,9 @@ class Suite:
code = self.stack.wait_exit(service)
check(code == 137, f"{service} exited with {code}, expected 137 at {point}")
seen = observe(ident)
seen["containers"] = self.stack.dc(
"ps", "-a", "--format", "{{.Name}} {{.ID}} {{.State}} {{.Status}}", service
).splitlines()
self.stack.launch(service)
ready = self.api.wait(ident, timeout=self.args.recovery_timeout)
poll(lambda: all(r["published"] for r in self.stack.sql("outbox", id=ident)), 30, "outbox")