Implement lab3 scaling, shared idempotency, failure research and defense guide
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= http://localhost:8080
|
||||
BASE_URL ?= http://localhost:8083
|
||||
CA_FILE ?=
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
@@ -28,3 +28,24 @@ test-persistence:
|
||||
test-failover:
|
||||
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
|
||||
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
.PHONY: bootstrap up down test-student experiment
|
||||
bootstrap:
|
||||
$(PYTHON) scripts/bootstrap.py
|
||||
up: bootstrap
|
||||
docker compose --env-file .env up -d --build --wait
|
||||
down:
|
||||
docker compose --env-file .env down
|
||||
test-student:
|
||||
go test -race -count=1 ./...
|
||||
$(PYTHON) student-tests/integration.py --base-url "$(BASE_URL)"
|
||||
experiment:
|
||||
$(PYTHON) student-tests/scaling.py
|
||||
|
||||
test-race:
|
||||
docker compose --profile verify run --build --rm tests
|
||||
|
||||
clean-clone:
|
||||
$(PYTHON) student-tests/clean_clone.py
|
||||
snapshot:
|
||||
$(PYTHON) student-tests/snapshot.py
|
||||
|
||||
Reference in New Issue
Block a user