-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed and added tests for node reload_secure_settings and usage APIs. (…
…#694) * Fixed response from /_nodes/{node_id}/reload_secure_settings. Signed-off-by: dblock <[email protected]>
- Loading branch information
Showing
6 changed files
with
101 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: The nodes reload secure settings endpoint. | ||
chapters: | ||
- synopsis: Reload secure settings for all nodes. | ||
path: /_nodes/reload_secure_settings | ||
method: POST | ||
response: | ||
status: 200 | ||
- synopsis: Reload secure settings for a node. | ||
path: /_nodes/{node_id}/reload_secure_settings | ||
method: POST | ||
parameters: | ||
node_id: _all | ||
response: | ||
status: 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test nodes usage. | ||
chapters: | ||
- synopsis: Get usage for all nodes. | ||
path: /_nodes/usage | ||
method: GET | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes for all metrics. | ||
path: /_nodes/usage/{metric} | ||
method: GET | ||
parameters: | ||
metric: | ||
- _all | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes for the `rest_actions` metric. | ||
path: /_nodes/usage/{metric} | ||
method: GET | ||
parameters: | ||
metric: | ||
- rest_actions | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes for the `aggregations` metric. | ||
path: /_nodes/usage/{metric} | ||
method: GET | ||
parameters: | ||
metric: | ||
- aggregations | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes (`node_id`). | ||
path: /_nodes/{node_id}/usage | ||
method: GET | ||
parameters: | ||
node_id: _all | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes for all metrics (`node_id`). | ||
path: /_nodes/{node_id}/usage/{metric} | ||
method: GET | ||
parameters: | ||
node_id: _all | ||
metric: | ||
- _all | ||
response: | ||
status: 200 | ||
- synopsis: Get usage for all nodes and all metrics. | ||
warnings: | ||
multiple-paths-detected: false | ||
path: /_nodes/{node_id}/{metric} | ||
method: GET | ||
parameters: | ||
node_id: _all | ||
metric: | ||
- _all | ||
response: | ||
status: 200 |