Skip to content

Commit a8c5aa9

Browse files
authored
Fix allowed_warnings placement in system ingest processor YAML test (#20770)
The v2 index template test had allowed_warnings on the document index step, but the warning about overlapping template patterns is emitted during put_index_template for v2 composable templates, not at index time. Move allowed_warnings to the correct step with the actual warning message returned by the server. Signed-off-by: Andrew Ross <andrross@amazon.com>
1 parent e6654b0 commit a8c5aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/examples/system-ingest-processor/src/yamlRestTest/resources/rest-api-spec/test/example-system-ingest-processor/20_system_ingest_processor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ teardown:
111111
- skip:
112112
features: allowed_warnings
113113
- do:
114+
allowed_warnings:
115+
- "index template [example-template] has index patterns [template-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [example-template] will take precedence during new index creation"
114116
# test v2 template
115117
indices.put_index_template:
116118
name: example-template
@@ -120,8 +122,6 @@ teardown:
120122
settings:
121123
index.example_system_ingest_processor_plugin.trigger_setting: true
122124
- do:
123-
allowed_warnings:
124-
- "index [template-index-1] matches multiple legacy templates [example-template, global], composable templates will only match a single template"
125125
index:
126126
index: template-index-1
127127
id: 1

0 commit comments

Comments
 (0)