Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Dec 19, 2024
1 parent 753af1d commit 760cd38
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/default/_core/upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
$schema: ../../../json_schemas/test_story.schema.yaml

description: Test upgrading indices using both GET and POST methods.
epilogues:
- path: /movies
method: DELETE
status: [200, 404]
prologues:
- path: /_bulk
method: POST
parameters:
refresh: true
request:
content_type: application/x-ndjson
payload:
- {create: {_index: movies, _id: movie1}}
- {director: Bennett Miller, title: The Cruise, year: 1998}
- {create: {_index: movies, _id: movie2}}
- {director: Nicolas Winding Refn, title: Drive, year: 1960}
chapters:
- synopsis: Trigger upgrade (POST).
path: /_upgrade
Expand Down

0 comments on commit 760cd38

Please sign in to comment.