-
Notifications
You must be signed in to change notification settings - Fork 77
add e2e test for getting sandbox segment key #1183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add e2e test for getting sandbox segment key #1183
Conversation
WalkthroughUpdated E2E analytics tests: changed the assertion helper to accept *testing.T, updated its call site, and added a new subtest validating the sandbox analytics path Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
test/e2e/parallel/registration_service_test.go (1)
191-194
: Optional: consolidate into a table-driven subtest to remove duplicationYou can keep both endpoints in a single loop for easier maintenance and consistent naming.
Example:
cases := []struct { name string path string expected string }{ {"devspaces", "segment-write-key", "test devspaces segment write key"}, {"sandbox", "analytics/segment-write-key", "test sandbox segment write key"}, } for _, tc := range cases { t.Run(fmt.Sprintf("get %s segment write key 200 OK", tc.name), func(_ *testing.T) { assertNotSecuredGetResponseEquals(tc.path, tc.expected) }) }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
test/e2e/parallel/registration_service_test.go
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Build & push operator bundles for e2e tests
🔇 Additional comments (1)
test/e2e/parallel/registration_service_test.go (1)
191-194
: LGTM: sandbox analytics endpoint coverage addedMirrors the existing devspaces check and reuses the shared helper. This should give us confidence the new endpoint returns the expected value in e2e.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexeykazakov, mfrancisc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
e2e tests for: codeready-toolchain/registration-service#543
Summary by CodeRabbit