From 441577f04b3aecb5c59cef9c1c8c4b13057e247e Mon Sep 17 00:00:00 2001 From: Niyazbek Torekeldi <78027392+Tokesh@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:57:45 +0500 Subject: [PATCH] splitting upgrade api specs (#703) Signed-off-by: Tokesh --- tests/default/_core/upgrade.yaml | 20 ++++++++++++++++++++ tests/default/indices/upgrade.yaml | 17 ----------------- 2 files changed, 20 insertions(+), 17 deletions(-) create mode 100644 tests/default/_core/upgrade.yaml diff --git a/tests/default/_core/upgrade.yaml b/tests/default/_core/upgrade.yaml new file mode 100644 index 000000000..9075e1a6f --- /dev/null +++ b/tests/default/_core/upgrade.yaml @@ -0,0 +1,20 @@ +$schema: ../../../json_schemas/test_story.schema.yaml + +description: Test upgrading indices using both GET and POST methods. +chapters: + - synopsis: Trigger upgrade (POST). + path: /_upgrade + method: POST + request: + payload: + allow_no_indices: false + expand_wildcards: closed + ignore_unavailable: false + response: + status: 200 + + - synopsis: Check upgrade status (GET). + path: /_upgrade + method: GET + response: + status: 200 \ No newline at end of file diff --git a/tests/default/indices/upgrade.yaml b/tests/default/indices/upgrade.yaml index 281f94029..46d81bb06 100644 --- a/tests/default/indices/upgrade.yaml +++ b/tests/default/indices/upgrade.yaml @@ -36,22 +36,5 @@ chapters: method: GET parameters: index: [movies] - response: - status: 200 - - - synopsis: Trigger upgrade (POST). - path: /_upgrade - method: POST - request: - payload: - allow_no_indices: false - expand_wildcards: closed - ignore_unavailable: false - response: - status: 200 - - - synopsis: Check upgrade status (GET). - path: /_upgrade - method: GET response: status: 200 \ No newline at end of file