forked from mtusi2026/mtusi2026lab7
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
This commit is contained in:
@@ -18,8 +18,10 @@ from concurrent.futures import ThreadPoolExecutor
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'tests'))
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
|
||||
|
||||
from client import Client, LAB, Failure, arguments, check, run # noqa: E402
|
||||
from lab7_http import BASE_URL, CA_FILE # noqa: E402
|
||||
|
||||
|
||||
def classify(error):
|
||||
@@ -52,7 +54,7 @@ def main():
|
||||
check(1 <= args.duration <= 3600, 'duration должен быть 1..3600')
|
||||
check(1 <= args.concurrency <= 128, 'concurrency должен быть 1..128')
|
||||
|
||||
bootstrap = Client(args.base_url, args.ca_file)
|
||||
bootstrap = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE)
|
||||
|
||||
# Стенд в момент старта может быть в переходном состоянии (например, сразу
|
||||
# после возврата БД), поэтому однократный 502 на bootstrap не должен ломать
|
||||
@@ -79,7 +81,7 @@ def main():
|
||||
instances = {}
|
||||
|
||||
def worker(worker_id):
|
||||
client = Client(args.base_url, args.ca_file, timeout=5)
|
||||
client = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE, timeout=5)
|
||||
local_latencies = []
|
||||
local_errors = {}
|
||||
local_instances = {}
|
||||
|
||||
Reference in New Issue
Block a user