mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
[TEST] expand REST tests to check for roles in nodes info, nodes stats and tasks list response
This commit is contained in:
parent
1852b6627f
commit
a685148268
@ -1,7 +1,14 @@
|
||||
---
|
||||
"node_info test":
|
||||
- do:
|
||||
cluster.state: {}
|
||||
|
||||
# Get master node id
|
||||
- set: { master_node: master }
|
||||
|
||||
- do:
|
||||
nodes.info: {}
|
||||
|
||||
- is_true: nodes
|
||||
- is_true: cluster_name
|
||||
- is_true: nodes.$master.roles
|
||||
|
@ -12,7 +12,10 @@
|
||||
|
||||
- is_true: cluster_name
|
||||
- is_true: nodes
|
||||
- is_true: nodes.$master.discovery
|
||||
- is_true: nodes.$master.name
|
||||
- is_false: nodes.$master.jvm
|
||||
- is_true: nodes.$master.discovery
|
||||
- is_true: nodes.$master.roles
|
||||
|
||||
- do:
|
||||
nodes.stats:
|
||||
@ -23,3 +26,4 @@
|
||||
- is_false: nodes.$master.name
|
||||
- is_false: nodes.$master.jvm
|
||||
- is_true: nodes.$master.discovery
|
||||
- is_false: nodes.$master.roles
|
||||
|
@ -1,6 +1,13 @@
|
||||
---
|
||||
"tasks_list test":
|
||||
- do:
|
||||
cluster.state: {}
|
||||
|
||||
# Get master node id
|
||||
- set: { master_node: master }
|
||||
|
||||
- do:
|
||||
tasks.list: {}
|
||||
|
||||
- is_true: nodes
|
||||
- is_true: nodes.$master.roles
|
||||
|
Loading…
x
Reference in New Issue
Block a user