[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:
parent
a82d486bda
commit
dc1ef7e670
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue