From d951bbf2300d4e8cde89815b8a6ad10048062d37 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Fri, 1 Dec 2017 16:54:30 +0100 Subject: [PATCH] Fix cluster usage docs test #27611 broke the docs tests because $node_name in the URL doesn't (#27616)seem to be replaced. Changing this to a * to match all nodes seems to fix the test --- docs/reference/cluster/nodes-usage.asciidoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/reference/cluster/nodes-usage.asciidoc b/docs/reference/cluster/nodes-usage.asciidoc index d0a5a028966cb..2d71e74959708 100644 --- a/docs/reference/cluster/nodes-usage.asciidoc +++ b/docs/reference/cluster/nodes-usage.asciidoc @@ -14,7 +14,7 @@ GET _nodes/nodeId1,nodeId2/usage -------------------------------------------------- // CONSOLE // TEST[setup:node] -// TEST[s/nodeId1,nodeId2/\$node_name/] +// TEST[s/nodeId1,nodeId2/*/] The first command retrieves usage of all the nodes in the cluster. The second command selectively retrieves nodes usage of only `nodeId1` and @@ -25,8 +25,8 @@ second command selectively retrieves nodes usage of only `nodeId1` and [[rest-usage]] ==== REST actions usage information -The `rest_actions` field in the response contains a map of the REST -actions classname with a count of the number of times that action has +The `rest_actions` field in the response contains a map of the REST +actions classname with a count of the number of times that action has been called on the node: [source,js] @@ -59,6 +59,6 @@ been called on the node: // TESTRESPONSE[s/1492553906606/$body.$_path/] // TESTRESPONSE[s/"rest_actions": [^}]+}/"rest_actions": $body.$_path/] <1> Timestamp for when this nodes usage request was performed. -<2> Timestamp for when the usage information recording was started. This is +<2> Timestamp for when the usage information recording was started. This is equivalent to the time that the node was started. <3> Search action has been called 19 times for this node. \ No newline at end of file