You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add allowed warnings to index template composition tests (#54916)
We occasionally add a global template for our YAML tests, and this can cause warnings for these
template tests. This commit adds these warnings so they don't cause test failures.
Resolves#54822
Co-authored-by: Elastic Machine <[email protected]>
Copy file name to clipboardExpand all lines: rest-api-spec/src/main/resources/rest-api-spec/test/indices.put_index_template/15_composition.yml
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
- skip:
4
4
version: " - 7.7.99"
5
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,6 +36,8 @@
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:
@@ -87,8 +90,11 @@
87
90
- skip:
88
91
version: " - 7.7.99"
89
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,6 +106,8 @@
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:
@@ -125,6 +133,7 @@
125
133
- skip:
126
134
version: " - 7.7.99"
127
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,6 +154,8 @@
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:
@@ -167,8 +178,11 @@
167
178
- skip:
168
179
version: " - 7.7.99"
169
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"
0 commit comments