File tree 1 file changed +45
-0
lines changed
1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ setup :
3
+ - do :
4
+ index :
5
+ index : ' my-data-index'
6
+ refresh : true
7
+ body :
8
+ name : ' Test data'
9
+ " @timestamp " : " 2023-12-20"
10
+ - do :
11
+ index :
12
+ index : ' my-data-index2'
13
+ refresh : true
14
+ body :
15
+ name : ' Test data'
16
+ " @timestamp " : " 2023-12-20"
17
+ - do :
18
+ indices.put_index_template :
19
+ name : ' my-data-template'
20
+ body :
21
+ index_patterns : ['my-data-alias*']
22
+ data_stream : {}
23
+ - do :
24
+ indices.put_alias :
25
+ index : ' my-data-index'
26
+ name : ' my-data-alias'
27
+ ---
28
+ teardown :
29
+ - do :
30
+ indices.delete_data_stream :
31
+ name : ' my-data-alias'
32
+ ---
33
+ ' migrate to data stream and modify ' :
34
+ - do :
35
+ indices.migrate_to_data_stream :
36
+ name : ' my-data-alias'
37
+ - is_true : acknowledged
38
+ - do :
39
+ indices.modify_data_stream :
40
+ body :
41
+ actions :
42
+ - add_backing_index :
43
+ data_stream : ' my-data-alias'
44
+ index : ' my-data-index2'
45
+ - is_true : acknowledged
You can’t perform that action at this time.
0 commit comments