|
2 | 2 | "Component and index template composition":
|
3 | 3 | - skip:
|
4 | 4 | version: " - 7.7.99"
|
5 |
| - reason: "itv2 is available in 7.8+" |
| 5 | + reason: "index template v2 API unavailable before 7.8" |
| 6 | + features: allowed_warnings |
6 | 7 |
|
7 | 8 | - do:
|
8 | 9 | cluster.put_component_template:
|
|
35 | 36 | is_write_index: true
|
36 | 37 |
|
37 | 38 | - do:
|
| 39 | + allowed_warnings: |
| 40 | + - "index template [my-template] has index patterns [foo, bar-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation" |
38 | 41 | indices.put_index_template:
|
39 | 42 | name: my-template
|
40 | 43 | body:
|
|
86 | 89 | "Index template priority":
|
87 | 90 | - skip:
|
88 | 91 | version: " - 7.7.99"
|
89 |
| - reason: "itv2 is available in 7.8+" |
| 92 | + reason: "index template v2 API unavailable before 7.8" |
| 93 | + features: allowed_warnings |
90 | 94 |
|
91 | 95 | - do:
|
| 96 | + allowed_warnings: |
| 97 | + - "index template [my-template] has index patterns [foo, bar-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation" |
92 | 98 | indices.put_index_template:
|
93 | 99 | name: my-template
|
94 | 100 | body:
|
|
100 | 106 | priority: 400
|
101 | 107 |
|
102 | 108 | - do:
|
| 109 | + allowed_warnings: |
| 110 | + - "index template [another-template] has index patterns [bar-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [another-template] will take precedence during new index creation" |
103 | 111 | indices.put_index_template:
|
104 | 112 | name: another-template
|
105 | 113 | body:
|
|
124 | 132 | "Component template only composition":
|
125 | 133 | - skip:
|
126 | 134 | version: " - 7.7.99"
|
127 |
| - reason: "itv2 is available in 7.8+" |
| 135 | + reason: "index template v2 API unavailable before 7.8" |
| 136 | + features: allowed_warnings |
128 | 137 |
|
129 | 138 | - do:
|
130 | 139 | cluster.put_component_template:
|
|
145 | 154 | type: keyword
|
146 | 155 |
|
147 | 156 | - do:
|
| 157 | + allowed_warnings: |
| 158 | + - "index template [my-template] has index patterns [baz*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation" |
148 | 159 | indices.put_index_template:
|
149 | 160 | name: my-template
|
150 | 161 | body:
|
|
166 | 177 | "Index template without component templates":
|
167 | 178 | - skip:
|
168 | 179 | version: " - 7.7.99"
|
169 |
| - reason: "itv2 is available in 7.8+" |
| 180 | + reason: "index template v2 API unavailable before 7.8" |
| 181 | + features: allowed_warnings |
170 | 182 |
|
171 | 183 | - do:
|
| 184 | + allowed_warnings: |
| 185 | + - "index template [my-template] has index patterns [eggplant] matching patterns from existing older templates [global] with patterns (global => [*]); this template [my-template] will take precedence during new index creation" |
172 | 186 | indices.put_index_template:
|
173 | 187 | name: my-template
|
174 | 188 | body:
|
|
0 commit comments