forked from mtusi2026/mtusi2026lab2
lab4_scenarios.py drives the public contract through tests/client.py: failover-upload stops the replica that answered the upload with the stop-one hook and downloads through another one comparing SHA-256, and s3-outage stops S3 and records status and time of upload, download, metadata, a text message and readiness before bringing it back. Both print JSON with an ok field. s3-check.sh checks published ports, the console, two more bootstrap runs without state changes, the allowed and denied operations of the API key and anonymous access including a plain HTTP GET from a separate container. evidence-attachments.sh shows where the bytes live and compares a stored object with its metadata outside the API. Makefile gains scenario, s3-check and attachments-evidence, ruff covers the new script, and the CI acceptance job runs both scenarios and the S3 check after the smoke test. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>