summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.put_warmer/20_aliases.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'rest-api-spec/test/indices.put_warmer/20_aliases.yaml')
-rw-r--r--rest-api-spec/test/indices.put_warmer/20_aliases.yaml30
1 files changed, 30 insertions, 0 deletions
diff --git a/rest-api-spec/test/indices.put_warmer/20_aliases.yaml b/rest-api-spec/test/indices.put_warmer/20_aliases.yaml
new file mode 100644
index 0000000..96d7344
--- /dev/null
+++ b/rest-api-spec/test/indices.put_warmer/20_aliases.yaml
@@ -0,0 +1,30 @@
+---
+"Getting warmer for aliases should return the real index as key":
+
+ - do:
+ indices.create:
+ index: test_index
+
+ - do:
+ cluster.health:
+ wait_for_status: yellow
+
+ - do:
+ indices.put_warmer:
+ index: test_index
+ name: test_warmer
+ body:
+ query:
+ match_all: {}
+
+ - do:
+ indices.put_alias:
+ index: test_index
+ name: test_alias
+
+ - do:
+ indices.get_warmer:
+ index: test_alias
+
+ - match: {test_index.warmers.test_warmer.source.query.match_all: {}}
+