docs(evidence): add test and failure evidence for levels 3 and 4

This commit is contained in:
kk10
2026-10-20 13:22:09 +03:00
parent 9cfe15ef1a
commit 9784fe9d14
6 changed files with 239 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
> docker compose ps -a api
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api 16 minutes ago Up 16 minutes (healthy) 8080/tcp
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api 16 minutes ago Up 16 minutes (healthy) 8080/tcp
> make test-failover ACTION_SCRIPT=scripts/stop-one.sh
python3 tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://localhost:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 123, "failed_attempts": 0, "first_recovery_seconds": 1.324}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
> docker compose ps -a api
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
mtusi2026lab3-api-1 mtusi-messenger:lab3 "/app/server" api 17 minutes ago Exited (0) 16 seconds ago
mtusi2026lab3-api-2 mtusi-messenger:lab3 "/app/server" api 17 minutes ago Up 16 minutes (healthy) 8080/tcp