test(ci): add disposable real ZITADEL browser OIDC acceptance

This commit is contained in:
Vib Tools committed 2026-11-22 09:16:53 -08:00
1 parent f423c69654
commit cbcd60e76e
32 files changed
+875 -22

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Ephemeral CI-only Playwright image; NEVER use on the developer Windows PC.
set -euo pipefail
test -r /ci/secret/oidc.json || { echo OIDC_CI_SECRET_FIXTURE_MISSING >&2; exit 1; }
test -d /tmp/ui || { echo OIDC_CI_SOURCE_MISSING >&2; exit 1; }
# Account Portal is installed in a disposable browser container only. The
# previously verified production build/unit suites are NOT repeated here.
if ! (cd /tmp/ui && npm ci --no-audit --no-fund >/tmp/oidc-account-npm.log 2>&1); then
echo ZITPLANE_OIDC_ACCOUNT_CI_DEPENDENCIES_BLOCKED >&2
exit 1
fi
echo ZITPLANE_OIDC_DISPOSABLE_ACCOUNT_DEPENDENCIES_READY_PASS
# Match the pinned Chromium image, never install arbitrary latest browser code.
if ! npm install --prefix /tmp/oidc-playwright --no-save --ignore-scripts --no-audit --no-fund playwright@1.58.2 >/tmp/oidc-browser-npm.log 2>&1; then
echo ZITPLANE_OIDC_PINNED_PLAYWRIGHT_INSTALL_BLOCKED >&2
exit 1
fi
export NODE_PATH=/tmp/oidc-playwright/node_modules
# Issuer and Account are private IPv4 loopback sockets in the proxy namespace.
export NODE_OPTIONS=--dns-result-order=ipv4first
exec node /tmp/oidc_e2e/browser.cjs