2013-07-23 19:17:51 -04:00
|
|
|
---
|
|
|
|
"Basic test for aliases":
|
2014-01-07 10:19:06 -05:00
|
|
|
|
2013-07-23 19:17:51 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
2013-09-25 12:58:54 -04:00
|
|
|
|
2013-07-23 19:17:51 -04:00
|
|
|
- do:
|
|
|
|
indices.exists_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- is_false: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.update_aliases:
|
|
|
|
body:
|
|
|
|
actions:
|
|
|
|
- add:
|
|
|
|
index: test_index
|
|
|
|
alias: test_alias
|
|
|
|
routing: routing_value
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.exists_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
- do:
|
2014-01-02 07:55:53 -05:00
|
|
|
indices.get_alias:
|
2013-07-23 19:17:51 -04:00
|
|
|
index: test_index
|
2014-01-02 14:03:10 -05:00
|
|
|
name: test_alias
|
2013-07-23 19:17:51 -04:00
|
|
|
|
|
|
|
- match: {test_index.aliases.test_alias: {'index_routing': 'routing_value', 'search_routing': 'routing_value'}}
|