Skip to content

Commit

Permalink
Restore "Add more yaml tests for get alias API " (#30814)
Browse files Browse the repository at this point in the history
These additional tests were previously reverted in 6.x due to failing bwc tests.
They should be skipped against 5.6 nodes, bwc tests fail when the node hit by the request is on 5.6.

Relates to #29513
Relates to #25114
Closes #30806
  • Loading branch information
javanna committed May 24, 2018
1 parent fbd9bb5 commit 6ed1c70
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,58 @@ setup:
---
"Get all aliases via /_alias":

- do:
indices.create:
index: test_index_3

- do:
indices.get_alias: {}

- match: {test_index.aliases.test_alias: {}}
- match: {test_index.aliases.test_blias: {}}
- match: {test_index_2.aliases.test_alias: {}}
- match: {test_index_2.aliases.test_blias: {}}
- match: {test_index_3.aliases: {}}

---
"Get aliases via /_alias/_all":
- skip:
version: " - 5.99.99"
reason: 5.x returns indices that have no aliases

- do:
indices.create:
index: test_index_3

- do:
indices.get_alias:
name: _all

- match: {test_index.aliases.test_alias: {}}
- match: {test_index.aliases.test_blias: {}}
- match: {test_index_2.aliases.test_alias: {}}
- match: {test_index_2.aliases.test_blias: {}}
- is_false: test_index_3

---
"Get aliases via /_alias/*":
- skip:
version: " - 5.99.99"
reason: 5.x returns indices that have no aliases

- do:
indices.create:
index: test_index_3

- do:
indices.get_alias:
name: _all

- match: {test_index.aliases.test_alias: {}}
- match: {test_index.aliases.test_blias: {}}
- match: {test_index_2.aliases.test_alias: {}}
- match: {test_index_2.aliases.test_blias: {}}
- is_false: test_index_3

---
"Get all aliases via /{index}/_alias/":
Expand Down

0 comments on commit 6ed1c70

Please sign in to comment.