all for 3

This commit is contained in:
2026-11-22 20:57:19 +03:00
parent 20afc2c790
commit 883b3e0305
161 changed files with 12479 additions and 36 deletions
+15 -1
View File
@@ -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