File tree Expand file tree Collapse file tree 2 files changed +39
-1
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test Expand file tree Collapse file tree 2 files changed +39
-1
lines changed Original file line number Diff line number Diff line change 91
91
cluster.stats : {}
92
92
93
93
- is_true : nodes.packaging_types
94
+
95
+ ---
96
+ " get cluster stats nodes count with both master and cluster_manager " :
97
+ - skip :
98
+ version : " - 1.4.99"
99
+ reason : " node role cluster_manager is added in 2.0.0"
100
+
101
+ - do :
102
+ cluster.stats : {}
103
+
104
+ - set :
105
+ nodes.count.cluster_manager : cluster_manager_count
106
+
107
+ - gte : { nodes.count.total: 1}
108
+ - match : { nodes.count.cluster_manager: $cluster_manager_count }
109
+ - match : { nodes.count.master: $cluster_manager_count }
110
+ - gte : { nodes.count.data: 1}
111
+ - gte : { nodes.count.ingest: 0}
112
+ - gte : { nodes.count.coordinating_only: 0}
Original file line number Diff line number Diff line change 14
14
---
15
15
" node_info role test " :
16
16
- skip :
17
- version : " - 7.7.99"
17
+ version : " - 7.7.99 , 2.0.0 - "
18
18
reason : " node roles were not sorted before 7.8.0"
19
19
20
20
- do :
@@ -28,4 +28,23 @@ setup:
28
28
- match : { nodes.$node_id.roles.1: "ingest" }
29
29
- match : { nodes.$node_id.roles.2: "master" }
30
30
- match : { nodes.$node_id.roles.3: "remote_cluster_client" }
31
+
32
+ ---
33
+ " node_info role test with both master and cluster_manager " :
34
+ - skip :
35
+ version : " - 1.4.99"
36
+ reason : " node role cluster_manager is added in 2.0.0"
37
+
38
+ - do :
39
+ nodes.info : {}
40
+ - set :
41
+ nodes._arbitrary_key_ : node_id
42
+
43
+ - is_true : nodes.$node_id.roles
44
+ # the roles output is sorted
45
+ - match : { nodes.$node_id.roles.0: "cluster_manager" }
46
+ - match : { nodes.$node_id.roles.1: "data" }
47
+ - match : { nodes.$node_id.roles.2: "ingest" }
48
+ - match : { nodes.$node_id.roles.3: "master" }
49
+ - match : { nodes.$node_id.roles.4: "remote_cluster_client" }
31
50
You can’t perform that action at this time.
0 commit comments