forked from mtusi2026/mtusi2026lab7
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
This commit is contained in:
@@ -20,9 +20,11 @@ from pathlib import Path
|
||||
from urllib.parse import quote
|
||||
|
||||
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 tests_helpers import compose, containers_by_hostname, messages_path # noqa: E402
|
||||
from lab7_http import BASE_URL, CA_FILE # noqa: E402
|
||||
|
||||
WINDOW_SECONDS = 15.0
|
||||
RECOVERY_DEADLINE_SECONDS = 10.0
|
||||
@@ -164,7 +166,7 @@ def main():
|
||||
script = Path(args.action_script).expanduser().resolve()
|
||||
check(script.is_file() and os.access(script, os.X_OK), 'hook должен существовать и быть исполняемым')
|
||||
|
||||
client = Client(args.base_url, args.ca_file)
|
||||
client = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE)
|
||||
alice, _, _, chat = client.bootstrap()
|
||||
|
||||
observed = observed_instances(client, alice)
|
||||
|
||||
Reference in New Issue
Block a user