This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= http://localhost:8080
|
||||
BASE_URL ?= http://127.0.0.1:8080
|
||||
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 grade4 track5 test-persistence migrate up down logs
|
||||
|
||||
help:
|
||||
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
|
||||
@echo "check: contract structure; validate: OpenAPI; test: public smoke; grade4: dependency/rollback/expiry checks; track5: query/index/restore experiment"
|
||||
|
||||
check:
|
||||
$(PYTHON) scripts/check_contract.py
|
||||
@@ -24,3 +24,22 @@ 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)
|
||||
|
||||
grade4:
|
||||
$(PYTHON) student-tests/test_level4.py --base-url "$(BASE_URL)"
|
||||
./scripts/test_expiry.sh
|
||||
|
||||
track5:
|
||||
$(PYTHON) student-tests/track5_query_restore.py
|
||||
|
||||
migrate:
|
||||
$(PYTHON) src/migrate.py
|
||||
|
||||
up:
|
||||
docker compose --env-file .env up -d --build
|
||||
|
||||
down:
|
||||
docker compose --env-file .env down
|
||||
|
||||
logs:
|
||||
docker compose --env-file .env logs -f
|
||||
|
||||
Reference in New Issue
Block a user