[TEST] expand REST tests to check for roles in nodes info, nodes stats and tasks list response

This commit is contained in:
javanna 2016-03-25 22:45:01 +01:00 committed by Luca Cavanna
parent 1852b6627f
commit a685148268
3 changed files with 19 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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