Skip to content

Commit

Permalink
renaming to avoid race condition
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 9391ae1 commit e802d7c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
- name: Run Tests
run: |
npm run test:spec -- \
--opensearch-insecure --verbose \
--opensearch-insecure \
--opensearch-version=${{ matrix.entry.version }} \
--coverage coverage/test-spec-coverage-${{ steps.tests.outputs.hash }}.json \
--opensearch-url=${{ matrix.entry.url || 'https://localhost:9200'}} \
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-fs-repository
repository: my-repository
snapshot: my-test-snapshot
- path: /_snapshot/{repository}/{snapshot}
method: DELETE
status: [200, 404]
parameters:
repository: my-fs-repository
repository: my-repository
snapshot: my-second-snapshot
- path: /_snapshot/{repository}
method: DELETE
status: [200, 404]
parameters:
repository: my-fs-repository
repository: my-repository
chapters:
- synopsis: Create and update a snapshot repository.
path: /_snapshot/{repository}
method:
- POST
- PUT
parameters:
repository: my-fs-repository
repository: my-repository
request:
payload:
type: fs
Expand All @@ -38,27 +38,27 @@ chapters:
response:
status: 200
payload:
my-fs-repository:
my-repository:
type: fs
settings:
location: /tmp/opensearch/repo
- synopsis: Get information about a repository.
path: /_snapshot/{repository}
method: GET
parameters:
repository: my-fs-repository
repository: my-repository
response:
status: 200
payload:
my-fs-repository:
my-repository:
type: fs
settings:
location: /tmp/opensearch/repo
- synopsis: Create a snapshot.
path: /_snapshot/{repository}/{snapshot}
method: PUT
parameters:
repository: my-fs-repository
repository: my-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-fs-repository
repository: my-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-fs-repository
repository: my-repository
snapshot: my-test-snapshot
response:
status: 200
Expand All @@ -102,7 +102,7 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: GET
parameters:
repository: my-fs-repository
repository: my-repository
snapshot: my-second-snapshot
human: true
response:
Expand All @@ -114,10 +114,10 @@ chapters:
path: /_snapshot/{repository}/{snapshot}
method: DELETE
parameters:
repository: my-fs-repository
repository: my-repository
snapshot: my-test-snapshot
- synopsis: Delete a snapshot repository.
path: /_snapshot/{repository}
method: DELETE
parameters:
repository: my-fs-repository
repository: my-repository
3 changes: 0 additions & 3 deletions tests/snapshot/snapshot/status.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ chapters:
payload:
snapshots:
- snapshot: my-test-snapshot
retry:
count: 3
wait: 30000
- synopsis: Get status of specific snapshot in specific repository.
path: /_snapshot/{repository}/{snapshot}/_status
method: GET
Expand Down

0 comments on commit e802d7c

Please sign in to comment.