2013-07-01 10:03:37 -04:00
|
|
|
---
|
|
|
|
"Missing metadata":
|
|
|
|
|
|
|
|
- do:
|
|
|
|
index:
|
|
|
|
index: test_1
|
|
|
|
type: test
|
|
|
|
id: 1
|
|
|
|
body: { foo: bar }
|
|
|
|
|
|
|
|
- do:
|
|
|
|
cluster.health:
|
|
|
|
wait_for_status: yellow
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 03:36:10 -04:00
|
|
|
catch: /action_request_validation_exception.+ id is missing/
|
2013-07-01 10:03:37 -04:00
|
|
|
mget:
|
|
|
|
body:
|
|
|
|
docs:
|
|
|
|
- { _index: test_1, _type: test}
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 03:36:10 -04:00
|
|
|
catch: /action_request_validation_exception.+ index is missing/
|
2013-07-01 10:03:37 -04:00
|
|
|
mget:
|
|
|
|
body:
|
|
|
|
docs:
|
|
|
|
- { _type: test, _id: 1}
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 03:36:10 -04:00
|
|
|
catch: /action_request_validation_exception.+ no documents to get/
|
2013-07-01 10:03:37 -04:00
|
|
|
mget:
|
|
|
|
body:
|
|
|
|
docs: []
|
|
|
|
|
|
|
|
- do:
|
2015-04-24 03:36:10 -04:00
|
|
|
catch: /action_request_validation_exception.+ no documents to get/
|
2013-07-01 10:03:37 -04:00
|
|
|
mget:
|
|
|
|
body: {}
|
|
|
|
|
|
|
|
- do:
|
|
|
|
mget:
|
|
|
|
body:
|
|
|
|
docs:
|
|
|
|
- { _index: test_1, _id: 1}
|
|
|
|
|
2014-01-02 15:31:49 -05:00
|
|
|
- is_true: docs.0.found
|
2013-07-01 10:03:37 -04:00
|
|
|
- match: { docs.0._index: test_1 }
|
|
|
|
- match: { docs.0._type: test }
|
2013-07-11 08:04:16 -04:00
|
|
|
- match: { docs.0._id: "1" }
|
2013-07-01 10:03:37 -04:00
|
|
|
- match: { docs.0._version: 1 }
|
|
|
|
- match: { docs.0._source: { foo: bar }}
|