Skip to content

Commit

Permalink
add test for search with seq_no_primary_term (#367)
Browse files Browse the repository at this point in the history
* add test for search with seq_no_primary_term

Signed-off-by: Erik Tammaru <[email protected]>

* update CHANGELOG

Signed-off-by: Erik Tammaru <[email protected]>

---------

Signed-off-by: Erik Tammaru <[email protected]>
Co-authored-by: Erik Tammaru <[email protected]>
  • Loading branch information
emtammaru and Erik Tammaru authored Jun 28, 2024
1 parent 73d5524 commit bb63d76
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added SPECIFICATION_TESTING.md [#359](https://github.com/opensearch-project/opensearch-api-specification/pull/359)
- Added StoryValidator to validate stories before running them ([#354](https://github.com/opensearch-project/opensearch-api-specification/issues/354))
- Added support for `text/plain` responses in `_cat` APIs ([#360](https://github.com/opensearch-project/opensearch-api-specification/pull/360))
- Added test for search with seq_no_primary_term ([#367](https://github.com/opensearch-project/opensearch-api-specification/pull/367))

### Changed

Expand Down
22 changes: 22 additions & 0 deletions tests/_core/search.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,25 @@ chapters:
method: POST
response:
status: 200
- synopsis: Search with seq_no_primary_term.
path: /{index}/_search
parameters:
index: movies
seq_no_primary_term: true
method: POST
response:
status: 200
payload:
timed_out: false
hits:
total:
value: 1
relation: eq
hits:
- _index: movies
_source:
director: Bennett Miller
title: Moneyball
year: 2011
_seq_no: 0
_primary_term: 1

0 comments on commit bb63d76

Please sign in to comment.