Skip to content

Commit

Permalink
hotfix with snapshot tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Dec 18, 2024
1 parent 46f6b96 commit 1fc81d2
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions tests/snapshot/snapshot/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,31 @@ chapters:
location: /tmp/opensearch/repo
- synopsis: Create a snapshot.
path: /_snapshot/{repository}/{snapshot}
method:
- POST
- PUT
method: POST
parameters:
repository: my-fs-repository
snapshot: my-test-snapshot
wait_for_completion: true
request:
payload:
indices: '*'
ignore_unavailable: true
include_global_state: false
partial: true
response:
status: 200
payload:
snapshot:
snapshot: my-test-snapshot
- synopsis: Delete a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: DELETE
parameters:
repository: my-fs-repository
snapshot: my-test-snapshot
- synopsis: Create a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: PUT
parameters:
repository: my-fs-repository
snapshot: my-test-snapshot
Expand All @@ -67,7 +89,7 @@ chapters:
status: 200
payload:
snapshot:
snapshot: my-test-snapshot
snapshot: my-test-snapshot
- synopsis: Get information about a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: GET
Expand All @@ -91,12 +113,6 @@ chapters:
payload:
snapshots:
- snapshot: my-test-snapshot
- synopsis: Delete a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: DELETE
parameters:
repository: my-fs-repository
snapshot: my-test-snapshot
- synopsis: Delete a snapshot repository.
path: /_snapshot/{repository}
method: DELETE
Expand Down

0 comments on commit 1fc81d2

Please sign in to comment.