34 lines
551 B
YAML
34 lines
551 B
YAML
---
|
|
"Basic test for put alias":
|
|
- skip:
|
|
version: "0 - 0.90.0"
|
|
reason: "Put alias not supported before 0.90.1"
|
|
- do:
|
|
indices.create:
|
|
index: test_index
|
|
|
|
- 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: {}}
|