#!/usr/bin/env sh set -eu if [ ! -f .env ]; then echo "missing .env; copy .env.example and set local-only values" >&2 exit 1 fi set -a . ./.env set +a docker compose down --volumes --remove-orphans docker compose up --build -d --wait docker compose --profile diagnostics up -d --wait \ app-wrong-audience \ app-wrong-issuer npm --prefix e2e ci E2E_USERNAME=regular-user \ E2E_PASSWORD="$REGULAR_USER_PASSWORD" \ WRONG_AUDIENCE_URL=http://localhost:18081/api/me \ WRONG_ISSUER_URL=http://localhost:18082/api/me \ npm --prefix e2e run test:pattern1 echo "AP1 verified end to end"