#!/bin/sh # E2E dataseed: nothing to seed at the auth layer because annotations is # verifier-only and has no users table. Tokens are minted on demand by the # e2e-runner using the mock-issuer's private key (see _docs/02_document/tests/ # test-data.md → "Bearer token harness"). # # This script is kept as a placeholder so e2e-runner's depends_on chain # (dataseed: service_completed_successfully) still has a clear ordering # anchor between annotations boot and test execution. Add table-level seed # inserts here if a future test class needs reference rows beyond what the # migrator already seeds. set -eu echo "[seed] waiting for /health" i=0 while ! wget -qO- "$ANNOTATIONS_BASE_URL/health" >/dev/null 2>&1; do i=$((i+1)) if [ "$i" -ge 60 ]; then echo "[seed] /health did not return 200 after 60 attempts" >&2 exit 1 fi sleep 1 done echo "[seed] /health is up; nothing to seed (verifier-only auth, no users table)" echo "[seed] done"