исправлены тесты и сценарии отказов

This commit is contained in:
2026-11-17 15:51:21 +03:00
parent baee48072c
commit bdcf40aad5
14 changed files with 280 additions and 22 deletions
+6 -2
View File
@@ -22,9 +22,13 @@ load:
$(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)
test-persistence:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2)
ifeq ($(ACTION_SCRIPT),)
$(error Set ACTION_SCRIPT to your implemented executable restart hook)
endif
$(PYTHON) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)
test-failover:
@test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2)
ifeq ($(ACTION_SCRIPT),)
$(error Set ACTION_SCRIPT to your implemented executable stop-one hook)
endif
$(PYTHON) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS)