2013-07-20 14:32:44 -04:00
|
|
|
---
|
2013-09-25 12:58:54 -04:00
|
|
|
"Basic test for put alias":
|
|
|
|
- skip:
|
|
|
|
version: "0 - 0.90.0"
|
|
|
|
reason: "Put alias not supported before 0.90.1"
|
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
|
|
|
|
|
|
|
|
- is_true: ok
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.exists_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- is_true: ''
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
name: test_alias
|
|
|
|
|
|
|
|
- match: {test_index.aliases.test_alias: {}}
|