Basic scroll tests

This commit is contained in:
Honza Kral 2013-07-16 16:43:47 +02:00
parent 5e93ee6104
commit 5f4438f34c
1 changed files with 31 additions and 0 deletions

View 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" }