OpenSearch/rest-api-spec/test/create/15_without_id.yaml
2013-06-27 11:34:43 +02:00

26 lines
548 B
YAML

---
"Create without ID":
- do:
create:
index: test_1
type: test
body: { foo: bar }
- ok: ok
- ok: _id
- match: { _index: test_1 }
- match: { _type: test }
- match: { _version: 1 }
- set: { _id: id }
- do:
get:
index: test_1
type: test
id: '$id'
- match: { _index: test_1 }
- match: { _type: test }
- match: { _id: $id }
- match: { _version: 1 }
- match: { _source: { foo: bar }}