inspec/test/unit/mock/cmd/elasticsearch-cluster-no-ssl
Adam Leff 8dc48533aa new resource: elasticsearch resource, test cluster/node state (#2261)
* new resource: elasticsearch resource, test cluster/node state

This is a new resource for testing an Elasticsearch cluster. It operates
by fetching the `_nodes` endpoint from a given Elasticsearch node and
collects data about each node in a cluster, even if there's only a
single node.

This work is based on inspiration from an initial PR #1956 submitted by
@rx294.

Signed-off-by: Rony Xavier <rx294@nyu.edu>
Signed-off-by: Aaron Lippold <lippold@gmail.com>
Signed-off-by: Adam Leff <adam@leff.co>

* Reduce mock data on non-default tests

Signed-off-by: Adam Leff <adam@leff.co>
2017-10-20 17:28:48 -04:00

23 lines
369 B
Text

{
"_nodes": {
"total": 1,
"successful": 1,
"failed": 0
},
"cluster_name": "no_ssl",
"nodes": {
"N1XoIhE6RWGAMTS1fSdsLg": {
"name": "N1XoIhE",
"modules": [],
"plugins": [],
"settings": {
"cluster": {
"name": "no_ssl"
},
"node": {
"name": "N1XoIhE"
}
}
}
}
}