[Monitoring] Ensure we use the provided node id in the query (#23715) (#23776)

* Ensure we use the right parameter name

* Update test fixture to use second node
This commit is contained in:
Chris Roberson 2018-10-04 13:40:51 -04:00 committed by GitHub
parent 6dae6d8cba
commit 83b9aaf0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 362 additions and 1359 deletions

View file

@ -39,7 +39,7 @@ function getUuid(req, metric) {
} else if (metric.app === 'logstash') {
return req.params.logstashUuid;
} else if (metric.app === 'elasticsearch') {
return req.params.resolver;
return req.params.nodeUuid;
}
}

View file

@ -28,7 +28,7 @@ export default function ({ getService }) {
it('should summarize node with metrics', async () => {
const { body } = await supertest
.post('/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes/jUT5KdxfRbORSCWkb5zjmA')
.post('/api/monitoring/v1/clusters/YCxj-RAgSZCP6GuOQ8M1EQ/elasticsearch/nodes/jxcP6ue7eRCieNNitFTT0EA')
.set('kbn-xsrf', 'xxx')
.send({
timeRange,