Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <[email protected]>
  • Loading branch information
Xtansia committed Dec 19, 2024
1 parent a56cd48 commit 76c6b9b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 10 deletions.
2 changes: 2 additions & 0 deletions spec/schemas/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
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

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

Expand Down

0 comments on commit 76c6b9b

Please sign in to comment.