#!/usr/bin/env bash # Creates the fixed pool of e2e test accounts. Handles are well-known (not # generated per run) because Caddy's TLS termination and the PDS network # alias are declared per-handle in docker-compose.yml/Caddyfile — adding an # account means adding it there too, not just running this script. set -euo pipefail PASSWORD="${TEST_ACCOUNT_PASSWORD:-e2e-test-password}" create() { local handle="$1" echo "creating $handle..." docker exec at-record-devnet-pds-1 goat pds admin account create \ --handle "$handle" --password "$PASSWORD" --email "${handle%.test}@example.com" \ || echo " (already exists, or creation failed — check above)" } create alice.test create bob.test