Skip to content

Change the settings of the index template test for DLM #94078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,18 @@ setup:
- skip:
version: " - 8.7.99"
reason: "Data lifecycle in index templates was added after 8.7"
features: allowed_warnings

- do:
allowed_warnings:
- "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"
indices.put_index_template:
name: test-lifecycle
body:
index_patterns: data-stream-with-lifecycle-*
template:
settings:
number_of_shards: 1
number_of_replicas: 0
mappings:
properties:
field:
Expand All @@ -132,7 +134,7 @@ setup:

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

---
Expand All @@ -149,7 +151,6 @@ setup:
template:
settings:
number_of_shards: 1
number_of_replicas: 0
mappings:
properties:
field:
Expand Down