Skip to content

Commit

Permalink
adding version constraints and fixing nits
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Aug 23, 2024
1 parent de5233c commit afadb06
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions tests/default/asynchronous_search/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -31,6 +27,7 @@ chapters:
synopsis: Asynchronous Search.
path: /_plugins/_asynchronous_search
method: POST
version: < 3.0
parameters:
index: books
keep_on_completion: true
Expand All @@ -47,19 +44,22 @@ chapters:
- synopsis: Get partial response from asynchronous search.
path: /_plugins/_asynchronous_search/{id}
method: GET
version: < 3.0
parameters:
id: ${async_search.id}
response:
status: 200
- synopsis: Delete partial response from asynchronous search.
path: /_plugins/_asynchronous_search/{id}
method: DELETE
version: < 3.0
parameters:
id: ${async_search.id}
response:
status: 200
- synopsis: Get stats.
path: /_plugins/_asynchronous_search/stats
method: GET
version: < 3.0
response:
status: 200

0 comments on commit afadb06

Please sign in to comment.