From afadb06bcaf51b84d21bcfa09bd0e7d389b5be0e Mon Sep 17 00:00:00 2001 From: Tokesh Date: Sat, 24 Aug 2024 00:30:16 +0500 Subject: [PATCH] adding version constraints and fixing nits Signed-off-by: Tokesh --- .github/workflows/test-spec.yml | 2 +- CHANGELOG.md | 2 +- tests/default/asynchronous_search/search.yaml | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-spec.yml b/.github/workflows/test-spec.yml index 0739e2a1e..4ddd8dfbd 100644 --- a/.github/workflows/test-spec.yml +++ b/.github/workflows/test-spec.yml @@ -73,7 +73,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-${{ matrix.entry.version }}-${{ matrix.entry.tests || 'default' }}.json \ --tests=tests/${{ matrix.entry.tests || 'default' }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae3be252..bb39f8eaf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,7 +79,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Added `cancelled_task_percentage` and `current_cancellation_eligible_tasks_count` to `ShardSearchBackpressureTaskCancellationStats` ([#483](https://github.com/opensearch-project/opensearch-api-specification/pull/483)) - Added detailed test coverage report ([#513](https://github.com/opensearch-project/opensearch-api-specification/pull/513)) - Added 404 responses to `/_alias/{name}` and `/{index}/_alias/{name}` ([#519](https://github.com/opensearch-project/opensearch-api-specification/pull/519)) -- Added `asynchronous_search` namespace API specifications ([#525](https://github.com/opensearch-project/opensearch-api-specification/pull/525)) +- Added `asynchronous_search` ([#525](https://github.com/opensearch-project/opensearch-api-specification/pull/525)) ### Changed diff --git a/tests/default/asynchronous_search/search.yaml b/tests/default/asynchronous_search/search.yaml index 7672286c8..1280369bf 100644 --- a/tests/default/asynchronous_search/search.yaml +++ b/tests/default/asynchronous_search/search.yaml @@ -18,10 +18,6 @@ prologues: - {author: Harper Lee, title: To Kill a Mockingbird, year: 1960} - {create: {_index: books, _id: book_1392215}} - {author: Elizabeth Rudnick, title: Beauty and the Beast, year: 1991} - - path: /{index}/_refresh - method: POST - parameters: - index: books epilogues: - path: /books method: DELETE @@ -31,6 +27,7 @@ chapters: synopsis: Asynchronous Search. path: /_plugins/_asynchronous_search method: POST + version: < 3.0 parameters: index: books keep_on_completion: true @@ -47,6 +44,7 @@ chapters: - synopsis: Get partial response from asynchronous search. path: /_plugins/_asynchronous_search/{id} method: GET + version: < 3.0 parameters: id: ${async_search.id} response: @@ -54,6 +52,7 @@ chapters: - synopsis: Delete partial response from asynchronous search. path: /_plugins/_asynchronous_search/{id} method: DELETE + version: < 3.0 parameters: id: ${async_search.id} response: @@ -61,5 +60,6 @@ chapters: - synopsis: Get stats. path: /_plugins/_asynchronous_search/stats method: GET + version: < 3.0 response: status: 200 \ No newline at end of file