From 760cd3883c3bcfbe1fc173db5028e2512c8cf404 Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Fri, 20 Dec 2024 11:09:30 +1300 Subject: [PATCH] Fix test Signed-off-by: Thomas Farr --- tests/default/_core/upgrade.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/default/_core/upgrade.yaml b/tests/default/_core/upgrade.yaml index 74ec4c96..a114e4ff 100644 --- a/tests/default/_core/upgrade.yaml +++ b/tests/default/_core/upgrade.yaml @@ -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