mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-27 10:28:28 +00:00
Add more yaml tests for get alias API (#29513)
This commit is contained in:
parent
da6a56f3cc
commit
af8ad8d172
@ -20,6 +20,10 @@ setup:
|
||||
---
|
||||
"Get all aliases via /_alias":
|
||||
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_index_3
|
||||
|
||||
- do:
|
||||
indices.get_alias: {}
|
||||
|
||||
@ -27,7 +31,41 @@ setup:
|
||||
- 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":
|
||||
|
||||
- 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/*":
|
||||
|
||||
- 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/":
|
||||
|
Loading…
x
Reference in New Issue
Block a user