summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.put_warmer/20_aliases.yaml
blob: 96d734475ac83b7599b2ed14725d38cef3b42c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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: {}}