mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +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
385 B
Text
23 lines
385 B
Text
{
|
|
"_nodes": {
|
|
"total": 1,
|
|
"successful": 1,
|
|
"failed": 0
|
|
},
|
|
"cluster_name": "authentication",
|
|
"nodes": {
|
|
"N1XoIhE6RWGAMTS1fSdsLg": {
|
|
"name": "N1XoIhE",
|
|
"modules": [],
|
|
"plugins": [],
|
|
"settings": {
|
|
"cluster": {
|
|
"name": "authentication"
|
|
},
|
|
"node": {
|
|
"name": "N1XoIhE"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|