mirror of
https://github.com/inspec/inspec
synced 2024-11-14 08:57:11 +00:00
8dc48533aa
* 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>
23 lines
369 B
Text
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|