-
Notifications
You must be signed in to change notification settings - Fork 55
Fix an e2e test case #313
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
Fix an e2e test case #313
Conversation
WalkthroughThe readiness endpoint test schema in the REST API feature file was updated to add a new "providers" field as a list of strings. The expected response body was also modified: the "providers" field is set to an empty list, and the "reason" field's value changed to "All providers are healthy". Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ 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. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
ad3b254 to
30e67c7
Compare
manstis
left a comment
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.
LGTM 👍
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)
tests/e2e/features/rest_api.feature (1)
25-26: Hard-coding the human-readablereasonrisks fragile tests
"All providers are healthy"is likely to change whenever the health-check code adds new components. Consider relaxing the assertion to a substring/regex match (contains "healthy"), or validating the field is non-empty instead of exact equality to reduce maintenance churn.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
tests/e2e/features/rest_api.feature(1 hunks)
🔇 Additional comments (1)
tests/e2e/features/rest_api.feature (1)
19-22:list[str]may not be parsed by the test runner – stick to the existing primitive-type pattern
All other schema keys use primitive markers ("bool","str"). Introducing the composite marker"list[str]"assumes the step definition understands generics; many of our custom validators don’t. A safer, backward-compatible option is to keep the primitive keyword and assert the element type separately, e.g.:- "providers": "list[str]" + "providers": "list"Then add a follow-up step such as:
And Each element of the "providers" field is of type "str"Please confirm the step implementation supports the generic form or adjust as suggested; otherwise the e2e will blow up at runtime.
Description
An attempt to fix an error in e2e-test for #34.
This corresponds to the changes made with #136.
Type of change
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit