OpenSearch/rest-api-spec/test/indices.put_alias/10_basic.yaml

34 lines
551 B
YAML
Raw Normal View History

2013-07-20 14:32:44 -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-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: {}}