diff --git a/tests/snapshot/snapshot/snapshot.yaml b/tests/snapshot/snapshot/snapshot.yaml index 8c7dcf32..8b5180b9 100644 --- a/tests/snapshot/snapshot/snapshot.yaml +++ b/tests/snapshot/snapshot/snapshot.yaml @@ -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 @@ -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 @@ -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