forked from mtusi2026/mtusi2026lab7
28 lines
880 B
Python
28 lines
880 B
Python
import os
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
from capture import run
|
|
|
|
|
|
def main():
|
|
os.environ["PYTHONPATH"] = "tests"
|
|
os.environ["BASE_URL"] = "https://127.0.0.1:8443"
|
|
os.environ["CA_FILE"] = str(Path("secrets/public/ca.crt").resolve())
|
|
for name in ("security_auth", "security_baseline"):
|
|
run(name.replace("_", "-"), [sys.executable, "student-tests/" + name + ".py"])
|
|
run(
|
|
"bao-policy",
|
|
["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/bao_policy.py"],
|
|
)
|
|
run("security-lifecycle", [sys.executable, "student-tests/security_lifecycle.py"])
|
|
run(
|
|
"tls-matrix",
|
|
["docker", "compose", "run", "--rm", "--no-deps", "-T", "audit", "/checks/tls_matrix.py"],
|
|
)
|
|
run("security-inventory", [sys.executable, "student-tests/security_inventory.py"])
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|