Validate now SELECTs id/prefix/org_id; the test mock row only had two columns, so the actual query against sqlmock errored with 'invalid or revoked org api token' at runtime (the row couldn't Scan). Add org_id to the mocked row and assert it propagates to the 4th return value. This is a test-only change — the production code path already had the third column selected; CI was the canary. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cmd/server | ||
| internal | ||
| migrations | ||
| pkg/provisionhook | ||
| .gitignore | ||
| Dockerfile | ||
| Dockerfile.tenant | ||
| entrypoint-tenant.sh | ||
| go.mod | ||
| go.sum | ||