forked from mtusi2026/mtusi2026lab2
ЛР2: PostgreSQL, сессии Bearer, кэш Valkey, Compose, исследование индексов и backup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user