Skip to content

Commit

Permalink
Fix cluster usage docs test
Browse files Browse the repository at this point in the history
#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
  • Loading branch information
clintongormley authored and cbuescher committed Dec 1, 2017
1 parent dbf98e8 commit d951bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/reference/cluster/nodes-usage.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand Down Expand Up @@ -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.

0 comments on commit d951bbf

Please sign in to comment.