Skip to content

Commit

Permalink
Added tests for /_cluster/allocation/explain. (#523)
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock authored Aug 22, 2024
1 parent b28c1cf commit 5416507
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/default/cluster/allocation/explain.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test cluster allocation explain requests.
epilogues:
- path: /games
method: DELETE
status: [200, 404]
prologues:
- path: /{index}
method: PUT
parameters:
index: games
chapters:
- synopsis: Finds an unassigned shard and explains why it can't be allocated to a node (GET).
path: /_cluster/allocation/explain
method: GET
response:
status: 200
- synopsis: Finds an unassigned shard and explains why it can't be allocated to a node (POST).
path: /_cluster/allocation/explain
method: POST
parameters:
include_yes_decisions: true
include_disk_info: true
request:
payload:
index: games
shard: 0
primary: true
response:
status: 200

0 comments on commit 5416507

Please sign in to comment.