Verification Checklist
Pre-deploy and post-deploy verification steps for the Gatelithix Gateway.
Pre-Deploy (Local)
Run these before every deploy to verify the codebase is healthy.
1. Build + Lint + Unit Tests
make ciVerifies: lint (0 issues), vet, all unit tests pass, coverage ≥ 60%.
2. Integration Tests (requires Docker)
docker compose up -d # Start PostgreSQL + Redis
go test -tags=integration ./tests/integration/... -v -count=1Runs 98 integration tests against real PostgreSQL via testcontainers. Covers all 7 PostgreSQL stores, migration rollbacks, connection failure recovery, and Pub/Sub emulator.
3. gatelithix CLI Build
go build -o bin/gatelithix ./cmd/gatelithix/ && ./bin/gatelithix --helpVerifies the debug CLI compiles and all 5 subcommands are registered (tx, webhook, connector, pubsub, db).
4. Docs Site Build
cd apps/docs && npm run buildRequires Node 18+. Verifies the Nextra site builds with all 25 pages (architecture, operations, compliance).
5. Schema Docs Generation
bash scripts/generate-schema-docs.shAuto-generates database schema documentation from migration SQL files. Output: apps/docs/content/architecture/database-schema.mdx.
6. Rotation Scripts Syntax Check
for f in scripts/rotate-*.sh; do bash -n "$f" && echo "OK $f"; doneValidates all 5 secret rotation scripts (db-password, hmac-key, connector-key, redis-auth, auth0-secret).
Post-Deploy (Requires GCP Access)
Run these after deploying to Cloud Run.
7. PCI Verification
Run the gcloud commands from the PCI verification page against your live GCP projects:
# View all verification commands
grep "gcloud" apps/docs/content/compliance/pci-verification.mdxEach command verifies a specific PCI DSS 4.0.1 control (firewall rules, KMS keys, IAM bindings, audit logs).
8. Deployed E2E Test
GATEWAY_URL=https://gateway-XXXXX.run.app \
go test -tags=e2e ./tests/e2e/... -v -count=1 -run TestDeployedTests full payment lifecycle (authorize → capture → refund) through the sandbox connector on deployed Cloud Run. Authenticates via seeded test API key (sk_test_e2e_*).
9. Milestone Audit
Once all checks pass:
/gsd:audit-milestoneAudits the milestone against its original intent before archiving.
Quick Reference
| Step | Command | Requires |
|---|---|---|
| 1. CI | make ci | Go, golangci-lint |
| 2. Integration | go test -tags=integration ./tests/integration/... | Docker |
| 3. CLI | go build -o bin/gatelithix ./cmd/gatelithix/ | Go |
| 4. Docs | cd apps/docs && npm run build | Node 18+ |
| 5. Schema | bash scripts/generate-schema-docs.sh | bash |
| 6. Rotation | for f in scripts/rotate-*.sh; do bash -n "$f"; done | bash |
| 7. PCI | gcloud commands from pci-verification.mdx | GCP auth |
| 8. E2E | GATEWAY_URL=... go test -tags=e2e ./tests/e2e/... | Deployed infra |