2013-07-20 14:32:44 -04:00
|
|
|
---
|
2013-09-25 12:58:54 -04:00
|
|
|
"Basic test for put alias":
|
2014-01-07 10:19:06 -05:00
|
|
|
|
2013-07-20 14:32:44 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: test_index
|
2013-09-25 12:58:54 -04:00
|
|
|
|
2013-07-20 14:32:44 -04:00
|
|
|
- do:
|
|
|
|
indices.exists_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- is_false: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.put_alias:
|
|
|
|
index: test_index
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.exists_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- match: {test_index.aliases.test_alias: {}}
|