Skip to content

Commit a2f3278

Browse files
Fix LogsdbTestSuiteIT unexpected warning (#114481)
Just expect the warning when adding the template.
1 parent 5fcfa48 commit a2f3278

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

muted-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ tests:
355355
- class: org.elasticsearch.xpack.inference.InferenceRestIT
356356
method: test {p0=inference/40_semantic_text_query/Query a field that uses the default ELSER 2 endpoint}
357357
issue: https://github.com/elastic/elasticsearch/issues/114376
358-
- class: org.elasticsearch.xpack.logsdb.LogsdbTestSuiteIT
359-
issue: https://github.com/elastic/elasticsearch/issues/114471
358+
- class: org.elasticsearch.search.retriever.RankDocsRetrieverBuilderTests
359+
method: testRewrite
360+
issue: https://github.com/elastic/elasticsearch/issues/114467
360361
- class: org.elasticsearch.packaging.test.DockerTests
361362
method: test022InstallPluginsFromLocalArchive
362363
issue: https://github.com/elastic/elasticsearch/issues/111063
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
create logsdb data stream with host.name as keyword:
3+
- requires:
4+
test_runner_features: [ "allowed_warnings" ]
35
- requires:
46
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
57
reason: support for normalizer on keyword fields
@@ -23,6 +25,8 @@ create logsdb data stream with host.name as keyword:
2325
index_patterns: ["logsdb"]
2426
data_stream: {}
2527
composed_of: ["logsdb-mappings"]
28+
allowed_warnings:
29+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
2630

2731
- do:
2832
indices.create_data_stream:
@@ -32,6 +36,8 @@ create logsdb data stream with host.name as keyword:
3236

3337
---
3438
create logsdb data stream with host.name as keyword and timestamp as date:
39+
- requires:
40+
test_runner_features: [ "allowed_warnings" ]
3541
- requires:
3642
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
3743
reason: support for normalizer on keyword fields
@@ -57,6 +63,8 @@ create logsdb data stream with host.name as keyword and timestamp as date:
5763
index_patterns: ["logsdb"]
5864
data_stream: {}
5965
composed_of: ["logsdb-mappings"]
66+
allowed_warnings:
67+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
6068

6169
- do:
6270
indices.create_data_stream:
@@ -66,6 +74,8 @@ create logsdb data stream with host.name as keyword and timestamp as date:
6674

6775
---
6876
create logsdb data stream with host as keyword:
77+
- requires:
78+
test_runner_features: [ "allowed_warnings" ]
6979
- requires:
7080
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
7181
reason: support for normalizer on keyword fields
@@ -89,6 +99,8 @@ create logsdb data stream with host as keyword:
8999
index_patterns: ["logsdb"]
90100
data_stream: {}
91101
composed_of: ["logsdb-mappings"]
102+
allowed_warnings:
103+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
92104

93105
- do:
94106
catch: bad_request
@@ -100,6 +112,8 @@ create logsdb data stream with host as keyword:
100112

101113
---
102114
create logsdb data stream with host as text and multi fields:
115+
- requires:
116+
test_runner_features: [ "allowed_warnings" ]
103117
- requires:
104118
cluster_features: [ "mapper.keyword_normalizer_synthetic_source" ]
105119
reason: support for normalizer on keyword fields
@@ -130,6 +144,8 @@ create logsdb data stream with host as text and multi fields:
130144
index_patterns: ["logsdb"]
131145
data_stream: {}
132146
composed_of: ["logsdb-mappings"]
147+
allowed_warnings:
148+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
133149

134150
- do:
135151
catch: bad_request
@@ -141,6 +157,8 @@ create logsdb data stream with host as text and multi fields:
141157

142158
---
143159
create logsdb data stream with host as text:
160+
- requires:
161+
test_runner_features: [ "allowed_warnings" ]
144162
- requires:
145163
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
146164
reason: "Support for normalizer on keyword fields"
@@ -167,6 +185,8 @@ create logsdb data stream with host as text:
167185
index_patterns: ["logsdb"]
168186
data_stream: {}
169187
composed_of: ["logsdb-mappings"]
188+
allowed_warnings:
189+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
170190

171191
- do:
172192
catch: bad_request
@@ -178,6 +198,8 @@ create logsdb data stream with host as text:
178198

179199
---
180200
create logsdb data stream with host as text and name as double:
201+
- requires:
202+
test_runner_features: [ "allowed_warnings" ]
181203
- requires:
182204
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
183205
reason: "Support for normalizer on keyword fields"
@@ -207,6 +229,8 @@ create logsdb data stream with host as text and name as double:
207229
index_patterns: ["logsdb"]
208230
data_stream: {}
209231
composed_of: ["logsdb-mappings"]
232+
allowed_warnings:
233+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
210234

211235
- do:
212236
catch: bad_request
@@ -218,6 +242,8 @@ create logsdb data stream with host as text and name as double:
218242

219243
---
220244
create logsdb data stream with timestamp object mapping:
245+
- requires:
246+
test_runner_features: [ "allowed_warnings" ]
221247
- requires:
222248
cluster_features: ["mapper.keyword_normalizer_synthetic_source"]
223249
reason: "Support for normalizer on keyword fields"
@@ -249,6 +275,8 @@ create logsdb data stream with timestamp object mapping:
249275
index_patterns: ["logsdb"]
250276
data_stream: {}
251277
composed_of: ["logsdb-mappings"]
278+
allowed_warnings:
279+
- "index template [logsdb-index-template] has index patterns [logsdb] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template] will take precedence during new index creation"
252280

253281
- match: { error.type: "illegal_argument_exception" }
254282
- match: { error.reason: "composable template [logsdb-index-template] template after composition with component templates [logsdb-mappings] is invalid" }

0 commit comments

Comments
 (0)