File tree 4 files changed +51
-0
lines changed
4 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ requires :
3
+ serverless : false
4
+ stack : true
5
+ ---
6
+ " Health " :
7
+ - do :
8
+ cat.health :
9
+ format : json
10
+ - match : { 0.epoch: '/[0-9]+/' }
11
+ - match : { 0.status: '/[green|yellow]/' }
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ teardown:
40
40
name : ' policy_test'
41
41
- match : { policies.0.config.match.name: 'policy_test' }
42
42
43
+ - do :
44
+ enrich.stats : {}
45
+ - is_true : ' executing_policies'
46
+ - match : { coordinator_stats.0.node_id: '/[a-zA-Z0-9]+/' }
47
+
43
48
- do :
44
49
enrich.delete_policy :
45
50
name : ' policy_test'
Original file line number Diff line number Diff line change @@ -26,3 +26,7 @@ teardown:
26
26
- do :
27
27
indices.explain_data_lifecycle : { index: 'my-data-stream' }
28
28
- match : { indices.my-data-stream.index: 'my-data-stream' }
29
+ - do :
30
+ indices.delete_data_lifecycle :
31
+ name : ' my-data-stream'
32
+ - match : { acknowledged: true }
Original file line number Diff line number Diff line change
1
+ ---
2
+ requires :
3
+ serverless : false
4
+ stack : true
5
+ ---
6
+ ' Put template ' :
7
+ - do :
8
+ indices.put_template :
9
+ name : test
10
+ body :
11
+ index_patterns : ' test-*'
12
+ settings :
13
+ number_of_shards : 1
14
+ number_of_replicas : 0
15
+ mappings :
16
+ properties :
17
+ field :
18
+ type : keyword
19
+
20
+ - do :
21
+ indices.get_template :
22
+ name : test
23
+ flat_settings : true
24
+
25
+ - match : {test.index_patterns: ["test-*"]}
26
+ - match : {test.settings: {index.number_of_shards: '1', index.number_of_replicas: '0'}}
27
+ - match : {test.mappings: {properties: {field: {type: keyword}}}}
28
+ - do :
29
+ indices.delete_template :
30
+ name : " test"
31
+ - match : { acknowledged: true }
You can’t perform that action at this time.
0 commit comments