ЛР2: PostgreSQL, сессии Bearer, кэш Valkey, Compose, исследование индексов и backup

This commit is contained in:
kolya5544
2026-10-03 05:10:45 +03:00
parent 65003b6119
commit 078c9f5f78
29 changed files with 2282 additions and 20 deletions
+16
View File
@@ -0,0 +1,16 @@
$ python3 tests/smoke.py
PASS: lab2 public API scenario; infrastructure and grading evidence remain separate.
$ python3 tests/resilience.py --mode persistence --action-script scripts/restart.sh (Windows: restart.cmd; контейнеры до/после — persistence_containers.txt)
Executing explicit persistence hook; hook output suppressed to avoid leaking secrets.
PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence.
$ python3 scripts/check_contract.py
PASS: offline skeleton structure, local refs and Python syntax; application NOT tested.
$ python -m unittest discover -s student-tests -p test_api.py
Ran 12 tests in 2.802s
OK
$ python student-tests/test_expiry.py (SESSION_TTL_SECONDS=2)
Ran 2 tests in 10.310s
OK
$ python student-tests/test_dependencies.py (остановка Valkey / PostgreSQL)
Ran 2 tests in 14.884s
OK