File tree 3 files changed +82
-0
lines changed
3 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " Getting mapping for aliases should return the real index as key " :
3
+
4
+ - do :
5
+ indices.create :
6
+ index : test_index
7
+ body :
8
+ mappings :
9
+ test_type :
10
+ properties :
11
+ text :
12
+ type : string
13
+ analyzer : whitespace
14
+
15
+ - do :
16
+ indices.put_alias :
17
+ index : test_index
18
+ name : test_alias
19
+
20
+ - do :
21
+ indices.get_mapping :
22
+ index : test_alias
23
+
24
+ - match : {test_index.test_type.properties.text.type: string}
25
+ - match : {test_index.test_type.properties.text.analyzer: whitespace}
26
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ " Getting settings for aliases should return the real index as key " :
3
+
4
+ - do :
5
+ indices.create :
6
+ index : test-index
7
+ body :
8
+ settings :
9
+ index :
10
+ refresh_interval : -1
11
+ number_of_shards : 2
12
+ number_of_replicas : 3
13
+
14
+ - do :
15
+ indices.put_alias :
16
+ index : test-index
17
+ name : test-alias
18
+
19
+ - do :
20
+ indices.get_settings :
21
+ index : test-alias
22
+
23
+ - match : { test-index.settings.index.number_of_replicas: "3" }
24
+ - match : { test-index.settings.index.number_of_shards: "2" }
25
+ - match : { test-index.settings.index.refresh_interval: "-1" }
26
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ " Getting warmer for aliases should return the real index as key " :
3
+
4
+ - do :
5
+ indices.create :
6
+ index : test_index
7
+
8
+ - do :
9
+ cluster.health :
10
+ wait_for_status : yellow
11
+
12
+ - do :
13
+ indices.put_warmer :
14
+ index : test_index
15
+ name : test_warmer
16
+ body :
17
+ query :
18
+ match_all : {}
19
+
20
+ - do :
21
+ indices.put_alias :
22
+ index : test_index
23
+ name : test_alias
24
+
25
+ - do :
26
+ indices.get_warmer :
27
+ index : test_alias
28
+
29
+ - match : {test_index.warmers.test_warmer.source.query.match_all: {}}
30
+
You can’t perform that action at this time.
0 commit comments