2013-07-01 16:03:37 +02:00
|
|
|
---
|
|
|
|
"IDs":
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test_2
|
|
|
|
id: 2
|
|
|
|
body: { foo: baz }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
|
|
|
- do:
|
|
|
|
mget:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
body:
|
|
|
|
ids: [1, 2]
|
|
|
|
|
2014-01-02 13:31:49 -07:00
|
|
|
- is_true: docs.0.found
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.0._index: test_1 }
|
|
|
|
- match: { docs.0._type: test }
|
2013-07-11 14:04:16 +02:00
|
|
|
- match: { docs.0._id: "1" }
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.0._version: 1 }
|
|
|
|
- match: { docs.0._source: { foo: bar }}
|
|
|
|
|
2014-01-02 13:31:49 -07:00
|
|
|
- is_false: docs.1.found
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.1._index: test_1 }
|
|
|
|
- match: { docs.1._type: test }
|
2013-07-11 14:04:16 +02:00
|
|
|
- match: { docs.1._id: "2" }
|
2013-07-01 16:03:37 +02:00
|
|
|
|
|
|
|
- do:
|
|
|
|
mget:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
ids: [1, 2]
|
|
|
|
|
2014-01-02 13:31:49 -07:00
|
|
|
- is_true: docs.0.found
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.0._index: test_1 }
|
|
|
|
- match: { docs.0._type: test }
|
2013-07-11 14:04:16 +02:00
|
|
|
- match: { docs.0._id: "1" }
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.0._version: 1 }
|
|
|
|
- match: { docs.0._source: { foo: bar }}
|
|
|
|
|
2014-01-02 13:31:49 -07:00
|
|
|
- is_true: docs.1.found
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.1._index: test_1 }
|
|
|
|
- match: { docs.1._type: test_2 }
|
2013-07-11 14:04:16 +02:00
|
|
|
- match: { docs.1._id: "2" }
|
2013-07-01 16:03:37 +02:00
|
|
|
- match: { docs.1._version: 1 }
|
|
|
|
- match: { docs.1._source: { foo: baz }}
|
|
|
|
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 09:36:10 +02:00
|
|
|
catch: /action_request_validation_exception.+ no documents to get/
|
2013-07-01 16:03:37 +02:00
|
|
|
mget:
|
|
|
|
index: test_1
|
|
|
|
body:
|
|
|
|
ids: []
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 09:36:10 +02:00
|
|
|
catch: /action_request_validation_exception.+ no documents to get/
|
2013-07-01 16:03:37 +02:00
|
|
|
mget:
|
|
|
|
index: test_1
|
|
|
|
body: {}
|