-
Notifications
You must be signed in to change notification settings - Fork 25.6k
GET aliases should 404 if aliases are missing #25043
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
Changes from all commits
af8cf64
aca1a4f
e52f4bd
0e6d1f7
e13b5d8
af53623
23e50a9
90022ae
6917440
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 |
|---|---|---|
|
|
@@ -78,7 +78,6 @@ setup: | |
|
|
||
| --- | ||
| "Get aliases via /{index}/_alias/prefix*": | ||
|
|
||
| - do: | ||
| indices.get_alias: | ||
| index: test_index | ||
|
|
@@ -166,25 +165,51 @@ setup: | |
|
|
||
|
|
||
| --- | ||
| "Non-existent alias on an existing index returns an empty body": | ||
| "Non-existent alias on an existing index returns 404": | ||
| - skip: | ||
| version: " - 5.99.99" | ||
|
Member
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. Same here about version
Member
Author
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. I disagree, see my top-level comment. |
||
| reason: Previous versions did not 404 on missing aliases | ||
|
|
||
| - do: | ||
| catch: missing | ||
| indices.get_alias: | ||
| index: test_index | ||
| name: non-existent | ||
|
|
||
| - match: { '': {}} | ||
| - match: { 'status': 404} | ||
| - match: { 'error': 'alias [non-existent] missing' } | ||
|
|
||
| --- | ||
| "Existent and non-existent alias returns just the existing": | ||
| "Existent and non-existent alias returns 404 and the existing alias": | ||
| - skip: | ||
| version: " - 5.99.99" | ||
|
Member
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. Same here for version
Member
Author
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. I disagree, see my top-level comment. |
||
| reason: Previous versions did not 404 on missing aliases | ||
|
|
||
| - do: | ||
| catch: missing | ||
| indices.get_alias: | ||
| index: test_index | ||
| name: test_alias,non-existent | ||
|
|
||
| - match: {test_index.aliases.test_alias: {}} | ||
| - is_false: test_index.aliases.non-existent | ||
| - match: { 'status': 404 } | ||
| - match: { 'error': 'alias [non-existent] missing' } | ||
| - match: { test_index.aliases.test_alias: { } } | ||
|
|
||
| --- | ||
| "Existent and non-existent aliases returns 404 and the existing alias": | ||
| - skip: | ||
| version: " - 5.99.99" | ||
|
Member
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. And same here for version
Member
Author
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. I disagree, see my top-level comment. |
||
| reason: Previous versions did not 404 on missing aliases | ||
|
|
||
| - do: | ||
| catch: missing | ||
| indices.get_alias: | ||
| index: test_index | ||
| name: test_alias,non-existent,another-non-existent | ||
|
|
||
| - match: { 'status': 404 } | ||
| - match: { 'error': 'aliases [another-non-existent,non-existent] missing' } | ||
| - match: { test_index.aliases.test_alias: { } } | ||
|
|
||
| --- | ||
| "Getting alias on an non-existent index should return 404": | ||
|
|
||
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.
I think this should be
5.4.99, since this will be backported, correct?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.
I disagree, see my top-level comment.