forked from mtusi2026/mtusi2026lab7
lab7: безопасность, mTLS, OpenBao и PKI lifecycle
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user