Add --base-url flag for connector testability - #71
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
russellhaering
left a comment
There was a problem hiding this comment.
LGTM — base-url correctly takes precedence over gov-env flag.
This change adds a --base-url CLI flag to allow overriding the default API endpoint for testing purposes. When provided, the connector will use this URL instead of the hardcoded production API URL. This is part of the Connector Testability initiative to enable mock server testing without modifying connector code. Files changed: pkg/config/conf.gen.go,pkg/config/config.go,pkg/connector/connector.go
base-url is a dev/testing concern, not user-facing configuration. Mark it WithHidden(true) so it doesn't appear in the hosted UI. Good feedback from Geoff: ConductorOne/baton-trayai#63 (comment)
badb007 to
f857788
Compare
|
Claude finished @c1-squire-dev[bot]'s task in 1m 13s —— View job PR Review: Add --base-url flag for connector testability
Overall: Clean, well-scoped change. The primary Slack client correctly gets the base URL override, and the field configuration (hidden, CLI-only) is appropriate. Two reviewers have already approved. I have one substantive concern and one minor note. Issue: Business+ client does not receive the base URL overrideThe This means when testing with If this is intentional (e.g., the testability initiative only targets the primary client for now), it would be worth documenting. Otherwise, the Minor: URL format expectationThe Note: I was unable to run |
|
Claude finished @c1-squire-dev[bot]'s task in 1m 10s —— View job PR Review: Add --base-url flag for connector testability
Overall: Clean, well-scoped change. The field configuration ( Issue: Business+ client does not receive the base URL overrideThe Looking at
When testing with This means the testability story is incomplete: the primary read path (via Recommendation: Pass Minor: URL format expectationThe slack-go library's Nit: Field naming inconsistencyThe generated struct field is Note: I was unable to run |
Summary
Adds the
--base-urlCLI flag to enable overriding the default API endpoint for testing purposes.Changes
BaseURLFieldto configuration--base-urlis provided, it takes precedence over the default API URLFiles Modified
Testing
The connector can now be tested against mock servers:
Related
Part of the Connector Testability initiative.