pure version of lab5

This commit is contained in:
2026-11-10 07:44:19 +03:00
parent 2b9fb3f375
commit 7cd02da51d
31 changed files with 295 additions and 1866 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ def main() -> None:
parser.add_argument("--ca-file")
args = parser.parse_args()
running = set(require_compose("ps", "--status", "running", "--services").splitlines())
check({"api", "postgres", "minio", "broker", "publisher", "worker"} <= running, "Start the lab5 stack before this scenario")
check({"api", "postgres", "minio", "broker", "publisher", "worker"} <= running, "Start the application stack before this scenario")
client = Client(args.base_url, args.ca_file, timeout=40)
project = ComposeProject()
aliases = {replica.instance_id for replica in project.replicas() if replica.running}
@@ -42,7 +42,7 @@ def main() -> None:
check(live["headers"].get("X-Instance-Id") in aliases, "BASE_URL does not belong to the selected Compose project")
alice, _, _, chat = client.bootstrap()
attachment = None
fault_container = "lab5-outbox-fault-" + uuid4().hex
fault_container = "messenger-outbox-fault-" + uuid4().hex
try:
require_compose("stop", "publisher")
attachment, original = client.attachment(alice, chat)