mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Basic scroll tests
This commit is contained in:
parent
5e93ee6104
commit
5f4438f34c
31
rest-api-spec/test/scroll/10_basic.yaml
Normal file
31
rest-api-spec/test/scroll/10_basic.yaml
Normal file
@ -0,0 +1,31 @@
|
||||
---
|
||||
"Basic scroll":
|
||||
- do:
|
||||
indices.create:
|
||||
index: test_scroll
|
||||
- do:
|
||||
index:
|
||||
index: test_scroll
|
||||
type: test
|
||||
id: 42
|
||||
body: { foo: bar }
|
||||
|
||||
- do:
|
||||
indices.refresh: {}
|
||||
|
||||
- do:
|
||||
search:
|
||||
search_type: scan
|
||||
scroll: 1m
|
||||
body:
|
||||
query:
|
||||
match_all: {}
|
||||
|
||||
- set: {_scroll_id: scroll_id}
|
||||
|
||||
- do:
|
||||
scroll:
|
||||
scroll_id: $scroll_id
|
||||
|
||||
- match: {hits.total: 1 }
|
||||
- match: {hits.hits.0._id: "42" }
|
Loading…
x
Reference in New Issue
Block a user