-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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 check for invalid index in WildcardExpressionResolver #26409
Changes from all commits
d1e505e
715b935
fd781af
36362dd
7e10ece
c00bb80
bdcc092
692e31f
201acf4
d1f0063
d16c70f
fc21e26
4e41dd8
94d359d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,3 +160,11 @@ setup: | |
- is_true: test_index_2.settings | ||
- is_true: test_index_3.settings | ||
|
||
--- | ||
"Should return an exception when querying invalid indices": | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test needs to assert on the HTTP status. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh I was unaware we could do that. I must've missed it in the docs! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You might have to add a specific catch for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ill block this on it being merged |
||
|
||
- do: | ||
catch: bad_request | ||
indices.get: | ||
index: _foo | ||
|
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.
unneeded change?
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.
should i remove this? my intellij settings might be a bit aggressive :)