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 v2 YAML tests (#54535) (#54541)
There is a setting in `ESClientYamlSuiteTestCase` under `usually()` that can install a `global`
template changing the number of shards for all indices. This can cause warnings when installing v2
templates (see #54367). This adds these as optional warnings so they don't cause failures regardless
of whether the global template is installed or not.
These warnings can be removed when our internal template usage has been moved to index templates v2
Relates to #53101
Copy file name to clipboardExpand all lines: rest-api-spec/src/main/resources/rest-api-spec/test/indices.get_index_template/10_basic.yml
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
1
setup:
2
2
- skip:
3
-
version: " - 7.99.99"
4
-
reason: "index template v2 API has not been backported"
3
+
version: " - 7.7.99"
4
+
reason: "index template v2 API unavailable before 7.8"
5
+
features: allowed_warnings
5
6
6
7
- do:
8
+
allowed_warnings:
9
+
- "index template [test] has index patterns [test-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test] will take precedence during new index creation"
7
10
indices.put_index_template:
8
11
name: test
9
12
body:
@@ -35,10 +38,13 @@ setup:
35
38
---
36
39
"Get all tindex emplates":
37
40
- skip:
38
-
version: " - 7.99.99"
39
-
reason: "index template v2 API has not been backported"
41
+
version: " - 7.7.99"
42
+
reason: "index template v2 API unavailable before 7.8"
43
+
features: allowed_warnings
40
44
41
45
- do:
46
+
allowed_warnings:
47
+
- "index template [test2] has index patterns [test2-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test2] will take precedence during new index creation"
Copy file name to clipboardExpand all lines: rest-api-spec/src/main/resources/rest-api-spec/test/indices.put_index_template/10_basic.yml
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,13 @@
1
1
---
2
2
"Put index template":
3
3
- skip:
4
-
version: " - 7.99.99"
5
-
reason: "index template v2 API has not been backported"
4
+
version: " - 7.7.99"
5
+
reason: "index template v2 API unavailable before 7.8"
6
+
features: allowed_warnings
6
7
7
8
- do:
9
+
allowed_warnings:
10
+
- "index template [test] has index patterns [test-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test] will take precedence during new index creation"
8
11
indices.put_index_template:
9
12
name: test
10
13
body:
@@ -30,10 +33,13 @@
30
33
---
31
34
"Put multiple index templates":
32
35
- skip:
33
-
version: " - 7.99.99"
34
-
reason: "index template v2 API has not been backported"
36
+
version: " - 7.7.99"
37
+
reason: "index template v2 API unavailable before 7.8"
38
+
features: allowed_warnings
35
39
36
40
- do:
41
+
allowed_warnings:
42
+
- "index template [test] has index patterns [test-*, test2-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test] will take precedence during new index creation"
37
43
indices.put_index_template:
38
44
name: test
39
45
body:
@@ -67,10 +73,13 @@
67
73
---
68
74
"Put index template with 'create' flag":
69
75
- skip:
70
-
version: " - 7.99.99"
71
-
reason: "index template v2 API has not been backported"
76
+
version: " - 7.7.99"
77
+
reason: "index template v2 API unavailable before 7.8"
78
+
features: allowed_warnings
72
79
73
80
- do:
81
+
allowed_warnings:
82
+
- "index template [test2] has index patterns [test-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test2] will take precedence during new index creation"
0 commit comments