From 753af1ddfa5e0d2b7b7956166750aaae5967af0b Mon Sep 17 00:00:00 2001 From: Thomas Farr Date: Thu, 19 Dec 2024 18:09:15 +1300 Subject: [PATCH] Fix tests Signed-off-by: Thomas Farr --- spec/schemas/_common.yaml | 2 ++ tests/default/_core/upgrade.yaml | 9 ++++----- tests/default/indices/upgrade.yaml | 8 +++----- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/spec/schemas/_common.yaml b/spec/schemas/_common.yaml index 474c03d5c..eb84bd635 100644 --- a/spec/schemas/_common.yaml +++ b/spec/schemas/_common.yaml @@ -1312,6 +1312,7 @@ components: - total_download_size - total_time_spent_in_millis SegmentReplicationStats: + x-version-added: 2.10.0 oneOf: - x-version-added: 2.10.0 x-version-removed: 2.12.0 @@ -1419,6 +1420,7 @@ components: remote_store: $ref: '#/components/schemas/RemoteStoreStats' segment_replication: + x-version-added: 2.10.0 $ref: '#/components/schemas/SegmentReplicationStats' required: - count diff --git a/tests/default/_core/upgrade.yaml b/tests/default/_core/upgrade.yaml index 9075e1a6f..74ec4c960 100644 --- a/tests/default/_core/upgrade.yaml +++ b/tests/default/_core/upgrade.yaml @@ -5,11 +5,10 @@ chapters: - synopsis: Trigger upgrade (POST). path: /_upgrade method: POST - request: - payload: - allow_no_indices: false - expand_wildcards: closed - ignore_unavailable: false + parameters: + allow_no_indices: false + expand_wildcards: closed + ignore_unavailable: false response: status: 200 diff --git a/tests/default/indices/upgrade.yaml b/tests/default/indices/upgrade.yaml index 46d81bb06..f21c3984f 100644 --- a/tests/default/indices/upgrade.yaml +++ b/tests/default/indices/upgrade.yaml @@ -23,11 +23,9 @@ chapters: method: POST parameters: index: [movies] - request: - payload: - allow_no_indices: true - expand_wildcards: open - ignore_unavailable: true + allow_no_indices: true + expand_wildcards: open + ignore_unavailable: true response: status: 200