File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/cluster.health Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 9292 - match : { unassigned_shards: 0 }
9393 - gte : { number_of_pending_tasks: 0 }
9494
95+ ---
96+ " cluster health basic test, one index with wait for no initializing shards " :
97+ - skip :
98+ version : " - 6.99.99"
99+ reason : " wait_for_no_initializing_shard is introduced in 7.0.0"
100+
101+ - do :
102+ indices.create :
103+ index : test_index
104+ wait_for_active_shards : 0
105+ body :
106+ settings :
107+ index :
108+ number_of_shards : 50
109+ number_of_replicas : 0
110+
111+ - do :
112+ cluster.health :
113+ wait_for_no_initializing_shards : true
114+
115+ - is_true : cluster_name
116+ - is_false : timed_out
117+ - gte : { number_of_nodes: 1 }
118+ - gte : { number_of_data_nodes: 1 }
119+ - match : { active_primary_shards: 50}
120+ - gt : { active_shards: 0 }
121+ - gte : { relocating_shards: 0 }
122+ - match : { initializing_shards: 0 }
123+ - match : { unassigned_shards: 0 }
124+ - gte : { number_of_pending_tasks: 0 }
125+
95126---
96127" cluster health levels " :
97128 - do :
You can’t perform that action at this time.
0 commit comments