lab7: безопасность, mTLS, OpenBao и PKI lifecycle

This commit is contained in:
Vladislav Kunetskiy
2026-11-10 10:58:07 +03:00
parent 3d216fbd50
commit 3441f2269a
183 changed files with 216667 additions and 3165 deletions
+4 -2
View File
@@ -2,7 +2,7 @@
"""Lab5: accepted work survives a stopped worker and a broker restart.
Run against a live stand:
python3 student-tests/lab5_async.py --base-url http://localhost:8080
python3 student-tests/lab5_async.py --base-url https://localhost:8443
"""
import sys
import time
@@ -10,9 +10,11 @@ from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'tests'))
sys.path.insert(0, str(Path(__file__).resolve().parent))
sys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'scripts'))
from client import Client, Failure, arguments, check, run # noqa: E402
from tests_helpers import ROOT, compose, jobctl, psql # noqa: E402
from lab7_http import BASE_URL, CA_FILE # noqa: E402
FIXTURE = Path(__file__).resolve().parents[1] / 'tests/fixtures/sample.png'
@@ -41,7 +43,7 @@ def wait_state(client, actor, attachment, expected, timeout=60):
def main():
args = arguments('Lab5 async worker/broker durability')
client = Client(args.base_url, args.ca_file)
client = Client(args.base_url or BASE_URL, args.ca_file or CA_FILE)
alice, bob, _, chat = client.bootstrap()
content = FIXTURE.read_bytes()