forked from mtusi2026/mtusi2026lab7
all for 3
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
PYTHON ?= python3
|
||||
BASE_URL ?= https://localhost:8443
|
||||
CA_FILE ?=
|
||||
CA_FILE ?= .local/ca.crt
|
||||
ACTION_SCRIPT ?=
|
||||
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
||||
|
||||
@@ -31,3 +31,17 @@ test-failover:
|
||||
|
||||
test-security:
|
||||
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
.PHONY: benchmark test-expiry security-extra
|
||||
|
||||
benchmark:
|
||||
docker compose exec -T api java -XX:MaxRAMPercentage=25 -Dloader.main=com.vnp.demo.config.PasswordBenchmark -cp /app/app.jar org.springframework.boot.loader.launch.PropertiesLauncher
|
||||
|
||||
test-expiry:
|
||||
@set -e; trap 'docker compose up -d --no-deps --wait api' EXIT; \
|
||||
SESSION_TTL_SECONDS=5 docker compose up -d --no-deps --wait api; \
|
||||
$(PYTHON) tests/negative_api.py --expiry --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
|
||||
security-extra:
|
||||
$(PYTHON) tests/negative_api.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
||||
docker compose run --rm --no-deps probe
|
||||
|
||||
Reference in New Issue
Block a user