1.3 KiB
1.3 KiB
Acceptance Tests
This package contains black-box Go tests for the staging API surface.
Local smoke run
go test ./tests/acceptance/... -staging-url=https://tapi.hifast.biz
Without credentials, tests that require admin/user login or NodeSecret are skipped and unauthenticated error-path checks still run.
Required secrets
The staging workflow should provide these values through GitHub Actions secrets or environment variables:
ACCEPTANCE_ADMIN_EMAILACCEPTANCE_ADMIN_PASSWORDACCEPTANCE_USER_EMAILACCEPTANCE_USER_PASSWORDSTAGING_DB_HOSTSTAGING_DB_USERSTAGING_DB_PASSWORDSTAGING_DB_NAMESTAGING_REDIS_ADDRSTAGING_REDIS_PASSWORDSTAGING_BASE_URL
ACCEPTANCE_NODE_SECRET is optional. When DB credentials are present, the loader reads NodeSecret from the staging system table instead of storing it as a long-lived secret.
Useful flags
-staging-url: API base URL.-run-id: run identifier used for QA-owned transient data.-report-path: write a JSON summary artifact.-seed-sql: seed SQL path, defaultfixtures/seed.sql.-node-server-idand-node-protocol: node smoke target.
Fixture rules
Seed data must use a qa_acceptance_ prefix or the provided RUN_ID. Cleanup must only delete QA-prefixed rows and Redis keys. Do not update or delete production-like staging data.