File tree Expand file tree Collapse file tree 2 files changed +20
-10
lines changed
qa/smoke-test-multinode/src/yamlRestTest/resources/rest-api-spec/test/smoke_test_multinode
rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/cluster.desired_balance Expand file tree Collapse file tree 2 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ setup:
71
71
version : " - 8.6.99"
72
72
reason : " Field added in in 8.7.0"
73
73
74
+ - do :
75
+ cluster.state : {}
76
+ - set : { nodes._arbitrary_key_ : node_id }
77
+ - set : { nodes.$node_id.name : node_name }
78
+
74
79
- do :
75
80
_internal.get_desired_balance : { }
76
81
@@ -101,8 +106,8 @@ setup:
101
106
- is_true : ' cluster_balance_stats.tiers.data_content.actual_disk_usage.average'
102
107
- is_true : ' cluster_balance_stats.tiers.data_content.actual_disk_usage.std_dev'
103
108
- is_true : ' cluster_balance_stats.nodes'
104
- - is_true : ' cluster_balance_stats.nodes.test-cluster-0 '
105
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .shard_count' : 0 }
106
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .forecast_write_load': 0.0 }
107
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .forecast_disk_usage_bytes' : 0 }
108
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .actual_disk_usage_bytes' : 0 }
109
+ - is_true : ' cluster_balance_stats.nodes.$node_name '
110
+ - gte : { 'cluster_balance_stats.nodes.$node_name .shard_count' : 0 }
111
+ - gte : { 'cluster_balance_stats.nodes.$node_name .forecast_write_load': 0.0 }
112
+ - gte : { 'cluster_balance_stats.nodes.$node_name .forecast_disk_usage_bytes' : 0 }
113
+ - gte : { 'cluster_balance_stats.nodes.$node_name .actual_disk_usage_bytes' : 0 }
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ setup:
26
26
version : " - 8.6.99"
27
27
reason : " Field added in in 8.7.0"
28
28
29
+ - do :
30
+ cluster.state : {}
31
+ - set : { nodes._arbitrary_key_ : node_id }
32
+ - set : { nodes.$node_id.name : node_name }
33
+
29
34
- do :
30
35
_internal.get_desired_balance : { }
31
36
@@ -56,11 +61,11 @@ setup:
56
61
- is_true : ' cluster_balance_stats.tiers.data_content.actual_disk_usage.average'
57
62
- is_true : ' cluster_balance_stats.tiers.data_content.actual_disk_usage.std_dev'
58
63
- is_true : ' cluster_balance_stats.nodes'
59
- - is_true : ' cluster_balance_stats.nodes.test-cluster-0 '
60
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .shard_count' : 0 }
61
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .forecast_write_load': 0.0 }
62
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .forecast_disk_usage_bytes' : 0 }
63
- - gte : { 'cluster_balance_stats.nodes.test-cluster-0 .actual_disk_usage_bytes' : 0 }
64
+ - is_true : ' cluster_balance_stats.nodes.$node_name '
65
+ - gte : { 'cluster_balance_stats.nodes.$node_name .shard_count' : 0 }
66
+ - gte : { 'cluster_balance_stats.nodes.$node_name .forecast_write_load': 0.0 }
67
+ - gte : { 'cluster_balance_stats.nodes.$node_name .forecast_disk_usage_bytes' : 0 }
68
+ - gte : { 'cluster_balance_stats.nodes.$node_name .actual_disk_usage_bytes' : 0 }
64
69
65
70
---
66
71
" Test get desired balance for single shard " :
You can’t perform that action at this time.
0 commit comments