Complete lab 7 security infrastructure
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Yuliiiaaaa
2026-11-30 21:23:07 +03:00
parent 20afc2c790
commit c00d245263
55 changed files with 3515 additions and 28 deletions
+10 -2
View File
@@ -1,10 +1,10 @@
PYTHON ?= python3
PYTHON ?= python
BASE_URL ?= https://localhost:8443
CA_FILE ?=
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
.PHONY: help check validate test load test-persistence test-failover test-security
.PHONY: help check validate test load test-persistence test-failover test-security test-security-extra test-expiry
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@@ -31,3 +31,11 @@ test-failover:
test-security:
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
# Run only while the API was started with SESSION_TTL_SECONDS=5.
test-expiry:
$(PYTHON) tests/session_expiry.py --base-url "$(BASE_URL)" $(TLS_ARGS) --wait-seconds 5
# Additional grade-3 checks, separate from the public external-TLS test.
test-security-extra:
$(PYTHON) tests/security_additional.py --base-url "$(BASE_URL)" $(TLS_ARGS)