Skip to content

Commit cfdc654

Browse files
authored
Fix allowed warnings (#114991)
Fixes #114961
1 parent caa16b4 commit cfdc654

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

x-pack/plugin/logsdb/src/yamlRestTest/resources/rest-api-spec/test/30_logsdb_default_mapping.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ create logsdb data stream with custom sorting without host.name:
291291

292292
- do:
293293
allowed_warnings:
294-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
294+
- "index template [logs-template] has index patterns [logs-http-prod] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
295295
indices.put_index_template:
296296
name: logs-template
297297
body:
@@ -341,7 +341,7 @@ create logsdb data stream with custom sorting and host object:
341341

342342
- do:
343343
allowed_warnings:
344-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
344+
- "index template [logs-template] has index patterns [logs-nginx-prod] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
345345
indices.put_index_template:
346346
name: logs-template
347347
body:
@@ -400,7 +400,7 @@ create logsdb data stream with custom sorting and dynamically mapped host.name:
400400

401401
- do:
402402
allowed_warnings:
403-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
403+
- "index template [logs-template] has index patterns [logs-kafka-qa] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
404404
indices.put_index_template:
405405
name: logs-template
406406
body:
@@ -465,7 +465,7 @@ create logsdb data stream with custom sorting and host.name object:
465465

466466
- do:
467467
allowed_warnings:
468-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
468+
- "index template [logs-template] has index patterns [logs-nginx-qa] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
469469
indices.put_index_template:
470470
name: logs-template
471471
body:
@@ -521,7 +521,7 @@ create logsdb data stream with default sorting on malformed host.name:
521521

522522
- do:
523523
allowed_warnings:
524-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
524+
- "index template [logs-template] has index patterns [logs-win-prod] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
525525
indices.put_index_template:
526526
name: logs-template
527527
body:
@@ -585,7 +585,7 @@ create logsdb data stream with custom sorting and host.name date field:
585585

586586
- do:
587587
allowed_warnings:
588-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
588+
- "index template [logs-template] has index patterns [logs-http-prod] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
589589
indices.put_index_template:
590590
name: logs-template
591591
body:
@@ -638,7 +638,7 @@ create logsdb data stream with custom sorting and missing host.name field mappin
638638

639639
- do:
640640
allowed_warnings:
641-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
641+
- "index template [logs-template] has index patterns [logs-http-qa] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
642642
indices.put_index_template:
643643
name: logs-template
644644
body:
@@ -690,7 +690,7 @@ create logsdb data stream with custom sorting and host.name field without doc va
690690

691691
- do:
692692
allowed_warnings:
693-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
693+
- "index template [logs-template] has index patterns [logs-http-dev] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
694694
indices.put_index_template:
695695
name: logs-template
696696
body:
@@ -732,7 +732,7 @@ create logsdb data stream with incompatible ignore_above on host.name:
732732

733733
- do:
734734
allowed_warnings:
735-
- "index template [logsdb-index-template-ignore-above] has index patterns [logsdb-ignore-above] matching patterns from existing older templates [global]"
735+
- "index template [logsdb-index-template-ignore-above] has index patterns [logsdb-ignore-above] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template-ignore-above] will take precedence during new index creation"
736736
indices.put_index_template:
737737
name: logsdb-index-template-ignore-above
738738
body:
@@ -780,7 +780,7 @@ create logsdb data stream with no sorting and host.name as text:
780780

781781
- do:
782782
allowed_warnings:
783-
- "index template [logsdb-index-template-non-keyword] has index patterns [logsdb-non-keyword] matching patterns from existing older templates [global]"
783+
- "index template [logsdb-index-template-non-keyword] has index patterns [logsdb-non-keyword] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template-non-keyword] will take precedence during new index creation"
784784
indices.put_index_template:
785785
name: logsdb-index-template-non-keyword
786786
body:
@@ -814,7 +814,7 @@ create logsdb data stream without index sorting and ignore_above on host.name:
814814

815815
- do:
816816
allowed_warnings:
817-
- "index template [logsdb-index-template-ignore-above-override] has index patterns [logsdb-ignore-above-override] matching patterns from existing older templates [global]"
817+
- "index template [logsdb-index-template-ignore-above-override] has index patterns [logsdb-ignore-above-override] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template-ignore-above-override] will take precedence during new index creation"
818818
indices.put_index_template:
819819
name: logsdb-index-template-ignore-above-override
820820
body:
@@ -860,7 +860,7 @@ create logsdb data stream with host.name as alias and sorting on it:
860860

861861
- do:
862862
allowed_warnings:
863-
- "index template [logsdb-index-template-alias] has index patterns [logsdb-alias] matching patterns from existing older templates [global]"
863+
- "index template [logsdb-index-template-alias] has index patterns [logsdb-alias] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template-alias] will take precedence during new index creation"
864864
indices.put_index_template:
865865
name: logsdb-index-template-alias
866866
body:
@@ -898,7 +898,7 @@ create logsdb data stream with multi-fields on host.name:
898898

899899
- do:
900900
allowed_warnings:
901-
- "index template [logsdb-index-template-multi-fields] has index patterns [logsdb-multi-fields] matching patterns from existing older templates [global]"
901+
- "index template [logsdb-index-template-multi-fields] has index patterns [logsdb-multi-fields] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-index-template-multi-fields] will take precedence during new index creation"
902902
indices.put_index_template:
903903
name: logsdb-index-template-multi-fields
904904
body:
@@ -945,7 +945,7 @@ create logsdb data stream with multi-fields on host.name and no sorting:
945945

946946
- do:
947947
allowed_warnings:
948-
- "index template [ logsdb-no-sort-multi-fields-template ] has index patterns [logsdb-no-sort-multi-fields] matching patterns from existing older templates [global]"
948+
- "index template [logsdb-no-sort-multi-fields-template] has index patterns [logsdb-no-sort-multi-fields] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logsdb-no-sort-multi-fields-template] will take precedence during new index creation"
949949
indices.put_index_template:
950950
name: logsdb-no-sort-multi-fields-template
951951
body:
@@ -980,7 +980,7 @@ create logsdb data stream with custom empty sorting:
980980

981981
- do:
982982
allowed_warnings:
983-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
983+
- "index template [logs-template] has index patterns [logs-http-empty] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
984984
indices.put_index_template:
985985
name: logs-template
986986
body:
@@ -1027,7 +1027,7 @@ create logsdb data stream with custom sorting on timestamp:
10271027

10281028
- do:
10291029
allowed_warnings:
1030-
- "index template [logs-template] has index patterns [logs-*-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
1030+
- "index template [logs-template] has index patterns [logs-http-dev] matching patterns from existing older templates [global] with patterns (global => [*]); this template [logs-template] will take precedence during new index creation"
10311031
indices.put_index_template:
10321032
name: logs-template
10331033
body:

0 commit comments

Comments
 (0)