lab2: PostgreSQL, Bearer-сессии и Redis-кэш

This commit is contained in:
lxst_atmose
2026-10-29 22:15:43 +03:00
parent 65003b6119
commit 130c485a6d
26 changed files with 2605 additions and 20 deletions
+9 -1
View File
@@ -4,10 +4,12 @@ CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence
.PHONY: help check validate test load test-persistence student-test concurrency
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@echo "student-test: own negative/validation/session tests; concurrency: parallel write evidence"
@echo "test-persistence: restart stack with ACTION_SCRIPT=scripts/restart.sh"
check:
$(PYTHON) scripts/check_contract.py
@@ -24,3 +26,9 @@ 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)
student-test:
$(PYTHON) student-tests/run.py --base-url "$(BASE_URL)" $(TLS_ARGS)
concurrency:
$(PYTHON) student-tests/concurrency.py --base-url "$(BASE_URL)" --clients 10 --messages-per-client 10 --output evidence/concurrency.json $(TLS_ARGS)