Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indices schemas #750

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix tests
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Dec 19, 2024
commit 76c6b9bc8f67a59292746f67b03877b6423525d4
2 changes: 2 additions & 0 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
@@ -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
25 changes: 20 additions & 5 deletions tests/default/_core/upgrade.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
$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
method: POST
request:
payload:
allow_no_indices: false
expand_wildcards: closed
ignore_unavailable: false
parameters:
allow_no_indices: false
expand_wildcards: open
ignore_unavailable: false
response:
status: 200

8 changes: 3 additions & 5 deletions tests/default/indices/upgrade.yaml
Original file line number Diff line number Diff line change
@@ -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

Loading