Skip to content

Commit eb2bfcb

Browse files
committed
Updates simulate index template tests
1 parent a638140 commit eb2bfcb

File tree

3 files changed

+17
-66
lines changed

3 files changed

+17
-66
lines changed

tests/indices/simulate_index_template.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,7 @@ teardown:
3333
properties:
3434
ct_field:
3535
type: keyword
36-
3736
- do:
38-
indices.simulate_template:
39-
body:
40-
index_patterns: te*
41-
priority: 15
42-
template:
43-
settings:
44-
index.blocks.write: true
45-
aliases:
46-
test_alias: {}
47-
composed_of: ["ct"]
48-
49-
- match: {template.settings.index.blocks.write: "true"}
50-
- match: {template.mappings.properties.ct_field.type: "keyword"}
51-
- match: {overlapping.0.name: existing_test}
52-
- match: {overlapping.0.index_patterns: ["te*"]}
53-
- is_true: template.aliases.test_alias
37+
indices.simulate_index_template:
38+
name: test
39+
- match: { overlapping: [] }

tests/indices/simulate_template_serverless.yml tests/indices/simulate_template.yml

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
requires:
33
serverless: true
4-
stack: false
4+
stack: true
55
---
66
teardown:
77
- do:
@@ -33,11 +33,21 @@ teardown:
3333
properties:
3434
ct_field:
3535
type: keyword
36+
3637
- do:
37-
indices.simulate_index_template:
38-
name: test
38+
indices.simulate_template:
3939
body:
40+
index_patterns: te*
41+
priority: 15
4042
template:
43+
settings:
44+
index.blocks.write: true
4145
aliases:
4246
test_alias: {}
43-
- match: { overlapping: [] }
47+
composed_of: ["ct"]
48+
49+
- match: {template.settings.index.blocks.write: "true"}
50+
- match: {template.mappings.properties.ct_field.type: "keyword"}
51+
- match: {overlapping.0.name: existing_test}
52+
- match: {overlapping.0.index_patterns: ["te*"]}
53+
- is_true: template.aliases.test_alias

tests/indices/simulate_template_stack.yml

-45
This file was deleted.

0 commit comments

Comments
 (0)