Skip to content

Commit 9647853

Browse files
Ignore warning on yaml test put template (#116200)
Ignore warnings in recently added tests. The underlying issue was fixed on main in #115799 . Rather than backport the larger fix, we can ignore the warning in yaml tests.
1 parent 93dae08 commit 9647853

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

docs/changelog/116200.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 116200
2+
summary: Ignore warning on yaml test put template
3+
area: Data streams
4+
type: enhancement
5+
issues:
6+
- 116158

modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/310_reroute_processor.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
setup:
2+
- skip:
3+
features: allowed_warnings
14
---
25
teardown:
36
- do:
@@ -296,6 +299,8 @@ teardown:
296299

297300
# set pipelines in templates
298301
- do:
302+
allowed_warnings:
303+
- "index template [template-1] has index patterns [data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-1] will take precedence during new index creation"
299304
indices.put_index_template:
300305
name: template-1
301306
body:
@@ -307,6 +312,8 @@ teardown:
307312
index.default_pipeline: "reroute-1"
308313
- match: { acknowledged: true }
309314
- do:
315+
allowed_warnings:
316+
- "index template [template-2] has index patterns [data-stream-2] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-2] will take precedence during new index creation"
310317
indices.put_index_template:
311318
name: template-2
312319
body:
@@ -318,8 +325,10 @@ teardown:
318325
index.default_pipeline: "reroute-2"
319326
- match: { acknowledged: true }
320327
- do:
328+
allowed_warnings:
329+
- "index template [template-3] has index patterns [data-stream-3] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-3] will take precedence during new index creation"
321330
indices.put_index_template:
322-
name: template_3
331+
name: template-3
323332
body:
324333
index_patterns: [ "data-stream-3" ]
325334
priority: 1
@@ -360,16 +369,20 @@ teardown:
360369

361370
# add higher priority templates without reroute processors
362371
- do:
372+
allowed_warnings:
373+
- "index template [template-4] has index patterns [data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-4] will take precedence during new index creation"
363374
indices.put_index_template:
364-
name: template_4
375+
name: template-4
365376
body:
366377
index_patterns: [ "data-stream-1" ]
367378
priority: 2 # higher priority
368379
data_stream: { }
369380
- match: { acknowledged: true }
370381
- do:
382+
allowed_warnings:
383+
- "index template [template-5] has index patterns [data-stream-2] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-5] will take precedence during new index creation"
371384
indices.put_index_template:
372-
name: template_5
385+
name: template-5
373386
body:
374387
index_patterns: [ "data-stream-2" ]
375388
priority: 2 # higher priority
@@ -462,6 +475,8 @@ teardown:
462475

463476
# set pipelines in templates
464477
- do:
478+
allowed_warnings:
479+
- "index template [template-1] has index patterns [data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-1] will take precedence during new index creation"
465480
indices.put_index_template:
466481
name: template-1
467482
body:
@@ -473,8 +488,10 @@ teardown:
473488
index.default_pipeline: "reroute-1"
474489
- match: { acknowledged: true }
475490
- do:
491+
allowed_warnings:
492+
- "index template [template-2] has index patterns [data-stream-2] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-2] will take precedence during new index creation"
476493
indices.put_index_template:
477-
name: template_2
494+
name: template-2
478495
body:
479496
index_patterns: [ "data-stream-2" ]
480497
priority: 1
@@ -511,8 +528,10 @@ teardown:
511528

512529
# add higher priority templates without reroute processors
513530
- do:
531+
allowed_warnings:
532+
- "index template [template-3] has index patterns [data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-3] will take precedence during new index creation"
514533
indices.put_index_template:
515-
name: template_3
534+
name: template-3
516535
body:
517536
index_patterns: [ "data-stream-1" ]
518537
priority: 2 # higher priority
@@ -545,6 +564,8 @@ teardown:
545564

546565
# add another higher priority templates with reroute processors
547566
- do:
567+
allowed_warnings:
568+
- "index template [template-3] has index patterns [data-stream-1] matching patterns from existing older templates [global] with patterns (global => [*]); this template [template-3] will take precedence during new index creation"
548569
indices.put_index_template:
549570
name: template-3
550571
body:

0 commit comments

Comments
 (0)