Skip to content

Commit e4b5e11

Browse files
committed
Adding rest api spec test for expecting cluster_uuid in cluster stats response
1 parent bd80a88 commit e4b5e11

File tree

1 file changed

+37
-0
lines changed
  • rest-api-spec/src/main/resources/rest-api-spec/test/cluster.stats

1 file changed

+37
-0
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/cluster.stats/10_basic.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,40 @@
2929
- is_true: nodes.fs
3030
- is_true: nodes.plugins
3131
- is_true: nodes.network_types
32+
33+
---
34+
"get cluster stats returns cluster_uuid at the top level":
35+
- skip:
36+
version: " - 6.99.99"
37+
reason: "cluster stats including cluster_uuid at the top level is new in v6.5.0 and higher"
38+
39+
- do:
40+
cluster.stats: {}
41+
42+
- is_true: cluster_uuid
43+
- is_true: timestamp
44+
- is_true: cluster_name
45+
- match: {status: green}
46+
- gte: { indices.count: 0}
47+
- is_true: indices.docs
48+
- is_true: indices.store
49+
- is_true: indices.fielddata
50+
- is_true: indices.query_cache
51+
- is_true: indices.completion
52+
- is_true: indices.segments
53+
- gte: { nodes.count.total: 1}
54+
- gte: { nodes.count.master: 1}
55+
- gte: { nodes.count.data: 1}
56+
- gte: { nodes.count.ingest: 0}
57+
- gte: { nodes.count.coordinating_only: 0}
58+
- is_true: nodes.os
59+
- is_true: nodes.os.mem.total_in_bytes
60+
- is_true: nodes.os.mem.free_in_bytes
61+
- is_true: nodes.os.mem.used_in_bytes
62+
- gte: { nodes.os.mem.free_percent: 0 }
63+
- gte: { nodes.os.mem.used_percent: 0 }
64+
- is_true: nodes.process
65+
- is_true: nodes.jvm
66+
- is_true: nodes.fs
67+
- is_true: nodes.plugins
68+
- is_true: nodes.network_types

0 commit comments

Comments
 (0)