Skip to content

Commit

Permalink
Added test for /_cluster/voting_config_exclusions.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Sep 4, 2024
1 parent 0d5878e commit 358d3d5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/routing/cluster/voting_config_exclusions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test adding/removing cluster-manager-eligible nodes from the voting configuration exclusion list.
prologues:
- path: /_cat/nodes
id: node
method: GET
parameters:
full_id: true
size: 1
format: json
h: id
output:
id: payload[0].id
chapters:
- synopsis: Adds a node to the voting configuration exclusion list.
path: /_cluster/voting_config_exclusions
method: POST
parameters:
node_ids: ${node.id}
response:
status: 200
- synopsis: Deletes a voting configuration exclusion list.
path: /_cluster/voting_config_exclusions
method: DELETE
parameters:
wait_for_removal: false
response:
status: 200

0 comments on commit 358d3d5

Please sign in to comment.