From e802d7c8889b56b7a5f568f09a792f29dc89d64e Mon Sep 17 00:00:00 2001 From: Tokesh Date: Thu, 19 Dec 2024 00:09:55 +0500 Subject: [PATCH] renaming to avoid race condition Signed-off-by: Tokesh --- .github/workflows/test-spec.yml | 2 +- tests/snapshot/snapshot/snapshot.yaml | 26 +++++++++++++------------- tests/snapshot/snapshot/status.yaml | 3 --- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index ac4245c8..d166b375 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -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'}} \ diff --git a/tests/snapshot/snapshot/snapshot.yaml b/tests/snapshot/snapshot/snapshot.yaml index 79e6bb59..abfc2198 100644 --- a/tests/snapshot/snapshot/snapshot.yaml +++ b/tests/snapshot/snapshot/snapshot.yaml @@ -6,19 +6,19 @@ 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} @@ -26,7 +26,7 @@ chapters: - POST - PUT parameters: - repository: my-fs-repository + repository: my-repository request: payload: type: fs @@ -38,7 +38,7 @@ chapters: response: status: 200 payload: - my-fs-repository: + my-repository: type: fs settings: location: /tmp/opensearch/repo @@ -46,11 +46,11 @@ chapters: 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 @@ -58,7 +58,7 @@ chapters: path: /_snapshot/{repository}/{snapshot} method: PUT parameters: - repository: my-fs-repository + repository: my-repository snapshot: my-test-snapshot wait_for_completion: true request: @@ -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: @@ -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 @@ -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: @@ -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 diff --git a/tests/snapshot/snapshot/status.yaml b/tests/snapshot/snapshot/status.yaml index 73f1da21..af00860d 100644 --- a/tests/snapshot/snapshot/status.yaml +++ b/tests/snapshot/snapshot/status.yaml @@ -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