From 735ed4dbe2bc1a969a1b921215b10d60ba642372 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Sun, 1 Dec 2024 12:49:58 +0500 Subject: [PATCH] flipping post and get and adding real deprecated version in specs Signed-off-by: Tokesh --- spec/namespaces/indices.yaml | 4 ++-- tests/default/indices/upgrade.yaml | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/spec/namespaces/indices.yaml b/spec/namespaces/indices.yaml index 2b837f5c1..cdcaaf299 100644 --- a/spec/namespaces/indices.yaml +++ b/spec/namespaces/indices.yaml @@ -844,7 +844,7 @@ paths: operationId: indices.get_upgrade.0 x-operation-group: indices.get_upgrade x-version-added: '1.0' - x-version-deprecated: '2.0' # i dont know the actual version + x-version-deprecated: '1.0' description: The `_upgrade` API is no longer useful and will be removed. externalDocs: url: https://opensearch.org/docs/latest @@ -859,7 +859,7 @@ paths: operationId: indices.upgrade.0 x-operation-group: indices.upgrade x-version-added: '1.0' - x-version-deprecated: '2.0' # i dont know the actual version + x-version-deprecated: '1.0' description: The `_upgrade` API is no longer useful and will be removed. externalDocs: url: https://opensearch.org/docs/latest diff --git a/tests/default/indices/upgrade.yaml b/tests/default/indices/upgrade.yaml index 20ca37162..46d81bb06 100644 --- a/tests/default/indices/upgrade.yaml +++ b/tests/default/indices/upgrade.yaml @@ -18,14 +18,6 @@ prologues: - {create: {_index: movies, _id: movie2}} - {director: Nicolas Winding Refn, title: Drive, year: 1960} chapters: - - synopsis: Check index upgrade status (GET). - path: /{index}/_upgrade - method: GET - parameters: - index: [movies] - response: - status: 200 - - synopsis: Trigger index upgrade (POST). path: /{index}/_upgrade method: POST @@ -38,3 +30,11 @@ chapters: ignore_unavailable: true response: status: 200 + + - synopsis: Check index upgrade status (GET). + path: /{index}/_upgrade + method: GET + parameters: + index: [movies] + response: + status: 200 \ No newline at end of file