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
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.
Copy file name to clipboardExpand all lines: modules/ingest-common/src/yamlRestTest/resources/rest-api-spec/test/ingest/310_reroute_processor.yml
+26-5Lines changed: 26 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,6 @@
1
+
setup:
2
+
- skip:
3
+
features: allowed_warnings
1
4
---
2
5
teardown:
3
6
- do:
@@ -296,6 +299,8 @@ teardown:
296
299
297
300
# set pipelines in templates
298
301
- 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"
299
304
indices.put_index_template:
300
305
name: template-1
301
306
body:
@@ -307,6 +312,8 @@ teardown:
307
312
index.default_pipeline: "reroute-1"
308
313
- match: { acknowledged: true }
309
314
- 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"
310
317
indices.put_index_template:
311
318
name: template-2
312
319
body:
@@ -318,8 +325,10 @@ teardown:
318
325
index.default_pipeline: "reroute-2"
319
326
- match: { acknowledged: true }
320
327
- 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"
321
330
indices.put_index_template:
322
-
name: template_3
331
+
name: template-3
323
332
body:
324
333
index_patterns: [ "data-stream-3" ]
325
334
priority: 1
@@ -360,16 +369,20 @@ teardown:
360
369
361
370
# add higher priority templates without reroute processors
362
371
- 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"
363
374
indices.put_index_template:
364
-
name: template_4
375
+
name: template-4
365
376
body:
366
377
index_patterns: [ "data-stream-1" ]
367
378
priority: 2# higher priority
368
379
data_stream: { }
369
380
- match: { acknowledged: true }
370
381
- 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"
371
384
indices.put_index_template:
372
-
name: template_5
385
+
name: template-5
373
386
body:
374
387
index_patterns: [ "data-stream-2" ]
375
388
priority: 2# higher priority
@@ -462,6 +475,8 @@ teardown:
462
475
463
476
# set pipelines in templates
464
477
- 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"
465
480
indices.put_index_template:
466
481
name: template-1
467
482
body:
@@ -473,8 +488,10 @@ teardown:
473
488
index.default_pipeline: "reroute-1"
474
489
- match: { acknowledged: true }
475
490
- 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"
476
493
indices.put_index_template:
477
-
name: template_2
494
+
name: template-2
478
495
body:
479
496
index_patterns: [ "data-stream-2" ]
480
497
priority: 1
@@ -511,8 +528,10 @@ teardown:
511
528
512
529
# add higher priority templates without reroute processors
513
530
- 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"
514
533
indices.put_index_template:
515
-
name: template_3
534
+
name: template-3
516
535
body:
517
536
index_patterns: [ "data-stream-1" ]
518
537
priority: 2# higher priority
@@ -545,6 +564,8 @@ teardown:
545
564
546
565
# add another higher priority templates with reroute processors
547
566
- 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"
0 commit comments