-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathingest.yml
36 lines (36 loc) · 885 Bytes
/
ingest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
requires:
stack: true
serverless: false
---
"simulate.ingest":
- do:
headers:
Content-Type: application/json
simulate.ingest:
body: >
{
"docs": [
{
"_index": "index-1",
"_id": "id",
"_source": {
"foo": "bar"
}
},
{
"_index": "index-2",
"_id": "id",
"_source": {
"foo": "rab"
}
}
]
}
- length: { docs: 2 }
- match: { docs.0.doc._index: "index-1" }
- match: { docs.0.doc._source.foo: "bar" }
- match: { docs.0.doc.executed_pipelines: [] }
- match: { docs.1.doc._index: "index-2" }
- match: { docs.1.doc._source.foo: "rab" }
- match: { docs.1.doc.executed_pipelines: [] }