Добавить результаты нагрузочных проверок

Сохранить доказательства выполнения лабораторной работы 3.
This commit is contained in:
2026-11-06 19:14:21 +03:00
parent 73e45f60f7
commit aa33e40ee5
5 changed files with 1948 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
.venv/bin/python tests/smoke.py --base-url "http://127.0.0.1:8080"
PASS: lab3 public API scenario; infrastructure and grading evidence remain separate.
.venv/bin/python tests/idempotency_race.py --base-url "http://127.0.0.1:8080"
PASS: 32 concurrent retries, one message, 2 API instances observed
.venv/bin/python tests/resilience.py --mode persistence --action-script "scripts/restart.sh" --base-url "http://127.0.0.1:8080"
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
.venv/bin/python tests/resilience.py --mode failover --action-script "scripts/stop-one.sh" --base-url "http://127.0.0.1:8080"
Executing explicit failover hook; hook output suppressed to avoid leaking secrets.
{"observed_instances_before": 2, "successful_writes": 114, "failed_attempts": 0, "first_recovery_seconds": 1.447}
PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence.
NOTE: scripts/validate_openapi.py not run: openapi-spec-validator==0.7.2 is declared in requirements-dev.txt but pip install was blocked by unavailable DNS for pypi.org. Offline structural check passed.