[TEST] improved regular scroll REST test

The intermediate document that gets indexed has now a non existing id, and we make sure it doesn't get returned.
This commit is contained in:
javanna 2014-09-25 11:45:17 +02:00 committed by Luca Cavanna
parent a82d486bda
commit dc1ef7e670
1 changed files with 9 additions and 1 deletions

View File

@ -102,7 +102,7 @@
index:
index: test_scroll
type: test
id: 42
id: 44
body: { foo: bar }
- do:
@ -116,6 +116,14 @@
- match: {hits.total: 2 }
- length: {hits.hits: 1 }
- do:
scroll:
scroll_id: $scroll_id
scroll: 1m
- match: {hits.total: 2 }
- length: {hits.hits: 0 }
- do:
clear_scroll:
scroll_id: $scroll_id