Implement lab2 PostgreSQL sessions and Redis cache
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= http://localhost:8080
|
||||
BASE_URL ?= http://localhost:18081
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
@@ -24,3 +24,11 @@ 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-extra test-faults test-lab2
|
||||
|
||||
test-extra: ; BASE_URL="$(BASE_URL)" $(PYTHON) tests/lab2_checks.py
|
||||
|
||||
test-faults: ; BASE_URL="$(BASE_URL)" $(PYTHON) tests/lab2_faults.py
|
||||
|
||||
test-lab2: ; $(MAKE) test-extra && $(MAKE) test-faults
|
||||
Reference in New Issue
Block a user