-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix snapshot status numeric property types (#729)
* Fix snapshot status numeric property types Signed-off-by: Thomas Farr <[email protected]> * changelog Signed-off-by: Thomas Farr <[email protected]> * Add test Signed-off-by: Thomas Farr <[email protected]> * Fix tests Signed-off-by: Thomas Farr <[email protected]> --------- Signed-off-by: Thomas Farr <[email protected]>
- Loading branch information
Showing
3 changed files
with
110 additions
and
25 deletions.
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,66 @@ | ||
$schema: ../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test _snapshot/{repository}/snapshot endpoints. | ||
epilogues: | ||
- path: /_snapshot/{repository}/{snapshot} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
- path: /_snapshot/{repository} | ||
method: DELETE | ||
status: [200, 404] | ||
parameters: | ||
repository: my-fs-repository | ||
prologues: | ||
- path: /_snapshot/{repository} | ||
method: PUT | ||
parameters: | ||
repository: my-fs-repository | ||
request: | ||
payload: | ||
type: fs | ||
settings: | ||
location: /tmp/opensearch/repo | ||
- path: /_snapshot/{repository}/{snapshot} | ||
method: PUT | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
request: | ||
payload: | ||
indices: '*' | ||
ignore_unavailable: true | ||
include_global_state: false | ||
partial: true | ||
chapters: | ||
- synopsis: Get status of all running snapshots. | ||
path: /_snapshot/_status | ||
method: GET | ||
response: | ||
status: 200 | ||
payload: | ||
snapshots: | ||
- snapshot: my-test-snapshot | ||
- synopsis: Get status of all running snapshots in specific repository. | ||
path: /_snapshot/{repository}/_status | ||
method: GET | ||
parameters: | ||
repository: my-fs-repository | ||
response: | ||
status: 200 | ||
payload: | ||
snapshots: | ||
- snapshot: my-test-snapshot | ||
- synopsis: Get status of specific snapshot in specific repository. | ||
path: /_snapshot/{repository}/{snapshot}/_status | ||
method: GET | ||
parameters: | ||
repository: my-fs-repository | ||
snapshot: my-test-snapshot | ||
response: | ||
status: 200 | ||
payload: | ||
snapshots: | ||
- snapshot: my-test-snapshot |