Skip to content

Commit

Permalink
Fixed response from /_nodes/{node_id}/reload_secure_settings.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Nov 25, 2024
1 parent c51aa2e commit a069657
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/namespaces/nodes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ components:
content:
application/json:
schema:
$ref: '../schemas/nodes.reload_secure_settings.yaml#/components/schemas/ResponseBase'
$ref: '../schemas/nodes.reload_secure_settings.yaml#/components/schemas/NodeReloadResponse'
nodes.stats@200:
content:
application/json:
Expand Down
11 changes: 8 additions & 3 deletions spec/schemas/nodes._common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1299,15 +1299,20 @@ components:
replica_rejections:
description: Number of indexing requests rejected in the replica stage.
type: number
NodeReloadError:
NodeReloadResponse:
type: object
properties:
name:
$ref: '_common.yaml#/components/schemas/Name'
reload_exception:
$ref: '_common.yaml#/components/schemas/ErrorCause'
required:
- name
NodeReloadError:
allOf:
- $ref: '#/components/schemas/NodeReloadResponse'
- type: object
properties:
reload_exception:
$ref: '_common.yaml#/components/schemas/ErrorCause'
SampleType:
type: string
description: The type to sample.
Expand Down
16 changes: 16 additions & 0 deletions tests/default/nodes/reload_secure_settings.yaml
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

0 comments on commit a069657

Please sign in to comment.