$ErrorActionPreference = 'Stop' Set-Location (Split-Path -Parent $PSScriptRoot) function Check-Exit { if ($LASTEXITCODE -ne 0) { throw "Network check failed with exit $LASTEXITCODE" } } docker compose run --rm --no-deps -T ` -v "${PWD}/student-tests/tls.py:/probe.py:ro" ` -v "${PWD}/secrets/pki/lb-client:/run/probe/correct:ro" ` -v "${PWD}/secrets/pki/wrong-ca:/run/probe/wrong-ca:ro" ` -v "${PWD}/secrets/pki/wrong-san:/run/probe/wrong-san:ro" tools python /probe.py Check-Exit foreach ($service in @('api1', 'worker')) { Get-Content student-tests/dependencies.py -Raw | docker compose exec -T $service python - Check-Exit } docker compose run --rm --no-deps -T ` -v "${PWD}/student-tests/telemetry_acl.py:/probe.py:ro" ` -v "${PWD}/secrets/generated/collector.json:/run/check/collector.json:ro" ` -v "${PWD}/secrets/generated/datasources.json:/run/check/datasources.json:ro" tools python /probe.py Check-Exit py -3 scripts/stack_audit.py Check-Exit