-
Notifications
You must be signed in to change notification settings - Fork 62
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
Index Upgrade
API specs and tests for them
#690
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
106fd00
replication added
Tokesh e912e13
fixing lint and trying test verbose
Tokesh bd877a8
changing docker compose
Tokesh 6fd6292
Merge branch 'main' into replication-namespace
Tokesh addcd76
adding tests for replication namespace
Tokesh 638d60e
fixing lint, validate specs ci
Tokesh a6e0a87
fixing docker-compose and validate specs ci
Tokesh b012e7b
fixing validate specs ci
Tokesh 236fea7
trying to fix validate specs
Tokesh 864ee68
trying to fix validate specs v2
Tokesh 30fca51
Merge branch 'replication-namespace'
Tokesh 1d051cd
Merge branch 'main' of https://github.com/Tokesh/opensearch-api-speci…
Tokesh 9620b94
Merge branch 'opensearch-project:main' into main
Tokesh f847731
Merge remote-tracking branch 'refs/remotes/origin/main'
Tokesh af3ba3e
adding specs and tests for upgrade api
Tokesh b7a8cae
Merge branch 'main' into upgrade-specs
Tokesh 4b48737
removing conflicts with rebase
Tokesh e25964c
hotfix lint
Tokesh 25ec08f
fixing ci cd conflicts
Tokesh 735ed4d
flipping post and get and adding real deprecated version in specs
Tokesh 481692a
adding two more upgrade specs
Tokesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test upgrading index 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 index upgrade (POST). | ||
path: /{index}/_upgrade | ||
method: POST | ||
parameters: | ||
index: [movies] | ||
request: | ||
payload: | ||
allow_no_indices: true | ||
expand_wildcards: open | ||
ignore_unavailable: true | ||
response: | ||
status: 200 | ||
|
||
- synopsis: Check index upgrade status (GET). | ||
path: /{index}/_upgrade | ||
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 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this is not an
/{index}
API and should go in its owntests/default/_core/upgrade.yaml
. I'll merge now, but appreciate it being split in a future PR.