forked from mtusi2026/mtusi2026lab2
Implement lab2 PostgreSQL authentication and Redis sessions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user