This repository has been archived on 2026-08-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
terraform-provider-dynu/scripts/testacc.sh
T

20 lines
470 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
if [[ "${TF_ACC:-}" != "1" ]]; then
echo "[testacc][error] TF_ACC must be set to 1" >&2
exit 1
fi
if [[ -z "${DYNU_API_KEY:-}" ]]; then
echo "[testacc][error] DYNU_API_KEY must be set" >&2
exit 1
fi
if [[ -z "${DYNU_DOMAIN:-}" ]]; then
echo "[testacc][info] DYNU_DOMAIN is not set; running baseline acceptance scaffolding"
fi
echo "[testacc] Running acceptance tests"
go test ./internal/provider -run TestAcc -count=1