2013-07-20 14:32:44 -04:00
|
|
|
---
|
|
|
|
"Basic test for delete alias":
|
2013-09-25 12:58:54 -04:00
|
|
|
|
2013-07-20 14:32:44 -04:00
|
|
|
- do:
|
|
|
|
indices.create:
|
|
|
|
index: testind
|
2013-09-25 12:58:54 -04:00
|
|
|
|
2013-07-20 14:32:44 -04:00
|
|
|
- do:
|
|
|
|
indices.put_alias:
|
|
|
|
index: testind
|
|
|
|
name: testali
|
|
|
|
body:
|
|
|
|
routing: "routing value"
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
name: testali
|
2013-09-25 12:58:54 -04:00
|
|
|
|
2013-07-20 14:32:44 -04:00
|
|
|
- match: {testind.aliases.testali.search_routing: "routing value"}
|
|
|
|
- match: {testind.aliases.testali.index_routing: "routing value"}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.delete_alias:
|
|
|
|
index: testind
|
|
|
|
name: testali
|
|
|
|
|
|
|
|
- do:
|
|
|
|
indices.get_alias:
|
|
|
|
index: testind
|
|
|
|
name: testali
|
2014-01-14 16:31:42 -05:00
|
|
|
|
|
|
|
- match: { '': {}}
|