[+] add project
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
2026-12-05 22:05:31 +03:00
parent 20afc2c790
commit 1d146756d7
63 changed files with 3501 additions and 149 deletions
+23 -3
View File
@@ -1,13 +1,30 @@
PYTHON ?= python3
BASE_URL ?= https://localhost:8443
CA_FILE ?=
CA_FILE ?= secrets/pki/ca.crt
ACTION_SCRIPT ?=
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
COMPOSE ?= docker compose
.PHONY: help check validate test load test-persistence test-failover test-security
.PHONY: help bootstrap up down logs check validate test load test-persistence test-failover test-security test-mtls
help:
@echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes"
@echo "bootstrap: create local CA/certificates and ignored secrets"
@echo "up: provision and start the secured Compose stack"
@echo "down: stop services without deleting persistent volumes"
@echo "check: structure, contracts and Python syntax; validate: full OpenAPI"
@echo "test: HTTPS smoke; test-security: trusted/untrusted CA check; test-mtls: API identity checks"
bootstrap:
./scripts/bootstrap-local-stack.sh
up:
./scripts/start-stack.sh
down:
$(COMPOSE) down
logs:
$(COMPOSE) logs --tail=100 -f
check:
$(PYTHON) scripts/check_contract.py
@@ -31,3 +48,6 @@ test-failover:
test-security:
$(PYTHON) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS)
test-mtls:
$(COMPOSE) --profile test run --rm --no-deps mtls-probe