Skip to content

Commit

Permalink
refactoring folder organization, adding retries, fixing naming
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <tokesh789@gmail.com>
  • Loading branch information
Tokesh committed Dec 19, 2024
1 parent e802d7c commit 9dedc0f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
$schema: ../../../json_schemas/test_story.schema.yaml
$schema: ../../../../json_schemas/test_story.schema.yaml

description: Test Update By Query endpoint.
description: Test Update By Query rethrottle endpoint.
prologues:
- path: /books/_delete_by_query
- path: /books/_update_by_query
id: task
method: POST
parameters:
Expand Down
26 changes: 13 additions & 13 deletions tests/snapshot/snapshot/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ epilogues:
method: DELETE
status: [200, 404]
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-test-snapshot
- path: /_snapshot/{repository}/{snapshot}
method: DELETE
status: [200, 404]
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-second-snapshot
- path: /_snapshot/{repository}
method: DELETE
status: [200, 404]
parameters:
repository: my-repository
repository: my-fs-repository
chapters:
- synopsis: Create and update a snapshot repository.
path: /_snapshot/{repository}
method:
- POST
- PUT
parameters:
repository: my-repository
repository: my-fs-repository
request:
payload:
type: fs
Expand All @@ -38,27 +38,27 @@ chapters:
response:
status: 200
payload:
my-repository:
my-fs-repository:
type: fs
settings:
location: /tmp/opensearch/repo
- synopsis: Get information about a repository.
path: /_snapshot/{repository}
method: GET
parameters:
repository: my-repository
repository: my-fs-repository
response:
status: 200
payload:
my-repository:
my-fs-repository:
type: fs
settings:
location: /tmp/opensearch/repo
- synopsis: Create a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: PUT
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-test-snapshot
wait_for_completion: true
request:
Expand All @@ -76,7 +76,7 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: POST
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-second-snapshot
wait_for_completion: true
request:
Expand All @@ -91,7 +91,7 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: GET
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-test-snapshot
response:
status: 200
Expand All @@ -102,7 +102,7 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: GET
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-second-snapshot
human: true
response:
Expand All @@ -114,10 +114,10 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: DELETE
parameters:
repository: my-repository
repository: my-fs-repository
snapshot: my-test-snapshot
- synopsis: Delete a snapshot repository.
path: /_snapshot/{repository}
method: DELETE
parameters:
repository: my-repository
repository: my-fs-repository
2 changes: 2 additions & 0 deletions tests/snapshot/snapshot/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ prologues:
ignore_unavailable: true
include_global_state: false
partial: true
retry:
count: 3
chapters:
- synopsis: Get status of all running snapshots.
path: /_snapshot/_status
Expand Down

0 comments on commit 9dedc0f

Please sign in to comment.