Fix flat_settings REST parameter
* Get XContent params from request in Nodes rest actions * Adding test for nodes info rest api
This commit is contained in:
parent
b22c526b34
commit
9eea1b6833
|
@ -275,7 +275,7 @@ public class RestActions {
|
|||
|
||||
@Override
|
||||
public RestResponse buildResponse(NodesResponse response, XContentBuilder builder) throws Exception {
|
||||
return RestActions.nodesResponse(builder, ToXContent.EMPTY_PARAMS, response);
|
||||
return RestActions.nodesResponse(builder, channel.request(), response);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
"node_info test flat_settings":
|
||||
- do:
|
||||
cluster.state: {}
|
||||
|
||||
- set: { master_node: master }
|
||||
|
||||
- do:
|
||||
nodes.info:
|
||||
metric: [ settings ]
|
||||
|
||||
- match : { nodes.$master.settings.client.type: node }
|
||||
|
||||
- do:
|
||||
nodes.info:
|
||||
metric: [ settings ]
|
||||
flat_settings: true
|
||||
|
||||
- match : { nodes.$master.settings.client\.type: node }
|
Loading…
Reference in New Issue