Commit Graph
3 Commits
Author SHA1 Message Date
Admin Bot 1dc688aec2 test: real integration tests for X-Service adapter routing
CI / Vet, test, build (push) Canceled after 1m47s
CI / Build and push image (push) Canceled after 0s
Tests that verify actual service operations:
- SQS send-message routing
- S3 list-objects with JWT pass-through
- Memory query routing
- IAM with JWT
- Authorization header pass-through to services

Tests gracefully skip if services unreachable (expected behavior).
Tests get real JWT from Authentik if credentials provided.

Run: GATEWAY_URL=http://localhost:8080 ./scripts/test-integration.sh
Or:  GATEWAY_URL=https://api.riotpiao.com \
     AUTHENTIK_CLIENT_ID=xxx AUTHENTIK_CLIENT_SECRET=yyy \
     ./scripts/test-integration.sh
2026-08-27 11:31:17 -07:00
Admin Bot a8d8b17a03 test: add integration test suite + canary deployment script
CI / Vet, test, build (push) Successful in 2m5s
CI / Build and push image (push) Successful in 49s
Integration tests:
- internal/serviceadapter/integration_test.go (8 test cases)
- Tests real gateway: health, routing, 404s, auth flow
- Configurable via GATEWAY_URL, TEST_JWT_TOKEN, SKIP_AUTH_TESTS

Canary deployment script:
- scripts/test-canary.sh: scale→1, test, scale→N on pass
- Keeps 1 pod for debugging on test failure
- Supports custom NAMESPACE, DEPLOYMENT, REPLICAS

Usage:
- Local: ./scripts/test-integration.sh
- Production: GATEWAY_URL=https://api.riotpiao.com ./scripts/test-integration.sh
- Canary: ./scripts/test-canary.sh

Added INTEGRATION_TESTS.md with full documentation.
2026-08-27 11:17:51 -07:00
Story Crater BotandClaude Opus 5 058f11cf2b chore: initial commit of Go API gateway
CI / Test (push) Canceled after 0s
CI / Vet (push) Canceled after 0s
CI / Build (push) Canceled after 0s
CI / Security (govulncheck) (push) Canceled after 0s
Baseline for the Kong replacement on api.riotpiao.com. Brings the working
tree under version control for the first time: gateway source, the task
board that drives the agent runs, test fixtures, and K8s manifests.

Anchor the gateway ignore rule to the repo root. Unanchored, "gateway"
also matched the cmd/gateway/ source directory, so the program entrypoint
was excluded from every commit.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-08-19 20:54:34 -07:00