Skip to content

Commit da7b1ed

Browse files
authored
Change the settings of the index template test for DLM (#94078)
1 parent 97e08ad commit da7b1ed

File tree

1 file changed

+4
-3
lines changed
  • rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_index_template

1 file changed

+4
-3
lines changed

rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/indices.get_index_template/10_basic.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,18 @@ setup:
109109
- skip:
110110
version: " - 8.7.99"
111111
reason: "Data lifecycle in index templates was added after 8.7"
112+
features: allowed_warnings
112113

113114
- do:
115+
allowed_warnings:
116+
- "index template [test-lifecycle] has index patterns [data-stream-with-lifecycle-*] matching patterns from existing older templates [global] with patterns (global => [*]); this template [test-lifecycle] will take precedence during new index creation"
114117
indices.put_index_template:
115118
name: test-lifecycle
116119
body:
117120
index_patterns: data-stream-with-lifecycle-*
118121
template:
119122
settings:
120123
number_of_shards: 1
121-
number_of_replicas: 0
122124
mappings:
123125
properties:
124126
field:
@@ -132,7 +134,7 @@ setup:
132134

133135
- match: {index_templates.0.name: test-lifecycle}
134136
- match: {index_templates.0.index_template.index_patterns: ["data-stream-with-lifecycle-*"]}
135-
- match: {index_templates.0.index_template.template.settings: {index: {number_of_shards: '1', number_of_replicas: '0'}}}
137+
- match: {index_templates.0.index_template.template.settings: {index: {number_of_shards: '1'}}}
136138
- match: {index_templates.0.index_template.template.mappings: {properties: {field: {type: keyword}}}}
137139

138140
---
@@ -149,7 +151,6 @@ setup:
149151
template:
150152
settings:
151153
number_of_shards: 1
152-
number_of_replicas: 0
153154
mappings:
154155
properties:
155156
field:

0 commit comments

Comments
 (0)