Implement lab2 PostgreSQL authentication and Redis sessions

This commit is contained in:
ferraronp
2026-10-23 18:33:06 +03:00
parent 65003b6119
commit 5dd32a77ac
23 changed files with 1126 additions and 55 deletions
+14 -1
View File
@@ -1,4 +1,4 @@
PYTHON ?= python3
PYTHON ?= python
BASE_URL ?= http://localhost:8080
CA_FILE ?=
ACTION_SCRIPT ?=
@@ -24,3 +24,16 @@ 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: test-own test-expiry test-dependencies
test-own:
$(PYTHON) tests/extra.py
# Run only after starting API with SESSION_TTL_SECONDS=2; use an isolated test stack.
test-expiry:
$(PYTHON) tests/expiry.py
# Stops PostgreSQL and Redis; must run only against your dedicated lab stack.
test-dependencies:
$(PYTHON) tests/dependency.py