summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.delete_alias/10_basic.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'rest-api-spec/test/indices.delete_alias/10_basic.yaml')
-rw-r--r--rest-api-spec/test/indices.delete_alias/10_basic.yaml32
1 files changed, 32 insertions, 0 deletions
diff --git a/rest-api-spec/test/indices.delete_alias/10_basic.yaml b/rest-api-spec/test/indices.delete_alias/10_basic.yaml
new file mode 100644
index 0000000..87f61ef
--- /dev/null
+++ b/rest-api-spec/test/indices.delete_alias/10_basic.yaml
@@ -0,0 +1,32 @@
+---
+"Basic test for delete alias":
+
+ - do:
+ indices.create:
+ index: testind
+
+ - do:
+ indices.put_alias:
+ index: testind
+ name: testali
+ body:
+ routing: "routing value"
+
+ - do:
+ indices.get_alias:
+ name: testali
+
+ - 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
+
+ - match: { '': {}}