File: all_path_options.yaml

package info (click to toggle)
elasticsearch 1.0.3%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 37,220 kB
  • sloc: java: 365,486; xml: 1,258; sh: 714; python: 505; ruby: 354; perl: 134; makefile: 41
file content (134 lines) | stat: -rw-r--r-- 2,946 bytes parent folder | download | duplicates (2)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
setup:

  - do:
      indices.create:
        index: test_index1

  - do:
      indices.create:
        index: test_index2

  - do:
      indices.create:
        index: foo

  - do:
      cluster.health:
        wait_for_status: yellow

---
"put warmer per index":

  - do:
      indices.put_warmer:
        index: test_index1
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.put_warmer:
        index: test_index2
        name: warmer
        body:
          query:
            match_all: {}

  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - is_false: foo

---
"put warmer in _all index":
  - do:
      indices.put_warmer:
        index: _all
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - match: {foo.warmers.warmer.source.query.match_all: {}}

---
"put warmer in * index":
  - do:
      indices.put_warmer:
        index: "*"
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - match: {foo.warmers.warmer.source.query.match_all: {}}

---
"put warmer prefix* index":
  - do:
      indices.put_warmer:
        index: "test_index*"
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - is_false: foo

---
"put warmer in list of indices":
  - do:
      indices.put_warmer:
        index: [test_index1, test_index2]
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - is_false: foo

---
"put warmer with blank index":
  - do:
      indices.put_warmer:
        name: warmer
        body:
          query:
            match_all: {}
  - do:
      indices.get_warmer: { index: _all, name: '*' }

  - match: {test_index1.warmers.warmer.source.query.match_all: {}}
  - match: {test_index2.warmers.warmer.source.query.match_all: {}}
  - match: {foo.warmers.warmer.source.query.match_all: {}}

---
"put warmer with missing name":


  - do:
      catch: param
      indices.put_warmer:
        body:
          query:
            match_all: {}