forked from mtusi2026/mtusi2026lab5
Student-owned tests
This directory contains additional experiments written for this implementation.
The course-provided black-box suite remains in tests/; Spring tests remain in
src/test/java.
idempotency_concurrent.py— one key through multiple API replicas.readiness_gate.py— both replicas become unhealthy after the required schema table disappears; readiness and business traffic must return 503, then recover after the table is restored.failover_each.py— sequential process failover of both Compose replicas.rolling_update.py— sequential replacement under write load.node_failover.py— hard loss of one worker in the disposable three-node Swarm lab, task relocation and confirmed-data verification.lab4_negative.py— oversized/corrupt/MIME-spoofed uploads, unsafe filename, unknown attachment, foreign user and cross-chat binding; every user error is 4xx.concurrent_upload_memory.py— 12 simultaneous ~6.5 MiB valid PNG uploads and aggregate API container memory sampling throughdocker stats(lab5202upload contract).lab5_worker_recovery.py— durable worker stop/restart, all three variants and idempotent duplicate delivery.lab5_fault_injection.py— crashes after outbox commit and after result commit but before consumer acknowledgement.lab5_dlq_replay_lease.py— permanent failure DLQ routing, guarded audited replay, and expired processing-lease recovery.lab5_pipeline_idempotency.py— versioned pipeline v1/v2, audited promotion,supersededfencing, duplicate/reordered/stale deliveries, and crashes before and after the S3 side effect. The script prints invariant checks and a finalPASSline; it uses.env.examplefor the disposable test stand by default.