ЛР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
+20
View File
@@ -24,3 +24,23 @@ load:
test-persistence:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2)
$(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
# --- собственные цели студента ---
.PHONY: secrets up down student-test test-expiry test-dependencies
secrets:
sh scripts/init-secrets.sh
up: secrets
docker compose --env-file .env up -d --build
down:
docker compose --env-file .env down
student-test:
$(PYTHON) -m unittest discover -s student-tests -p "test_api.py" -v
test-expiry:
$(PYTHON) student-tests/test_expiry.py
test-dependencies:
$(PYTHON) student-tests/test_dependencies.py