summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/indices.exists_alias/10_basic.yaml
blob: fba0512ca372f3c4fa3dea44a6001235037c29af (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
"Test indices.exists_alias":
  - do:
      indices.exists_alias:
        name: test_alias

  - is_false: ''

  - do:
        indices.create:
          index: test_index

  - do:
        indices.put_alias:
          index: test_index
          name: test_alias

  - do:
      indices.exists_alias:
        name: test_alias

  - is_true: ''

  - do:
      indices.exists_alias:
        index: test_index
        name: test_alias

  - is_true: ''

  - do:
      indices.exists_alias:
        index: test_index1
        name: test_alias

  - is_false: ''

---
"Test indices.exists_alias with local flag":
  - do:
      indices.exists_alias:
        name: test_alias
        local: true

  - is_false: ''