Co-authored-by: multica-agent <github@multica.ai>
1.5 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.
Workflow configuration
STAGING_BASE_URL should be provided through GitHub Actions secrets or variables. When omitted, the workflow falls back to https://tapi.hifast.biz.
The following secrets are optional. When any of them are missing, the workflow still runs and the corresponding acceptance cases are skipped automatically:
ACCEPTANCE_ADMIN_EMAILACCEPTANCE_ADMIN_PASSWORDACCEPTANCE_USER_EMAILACCEPTANCE_USER_PASSWORDSTAGING_DB_HOSTSTAGING_DB_USERSTAGING_DB_PASSWORDSTAGING_DB_NAMESTAGING_REDIS_ADDRSTAGING_REDIS_PASSWORD
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.