34 lines
656 B
YAML
Raw Normal View History

2013-06-26 21:04:20 +01:00
---
2013-06-26 21:18:14 +01:00
"Create with ID":
2013-06-26 21:04:20 +01:00
- do:
2013-06-26 21:18:14 +01:00
create:
2013-06-26 21:04:20 +01:00
index: test_1
type: test
id: 1
body: { foo: bar }
2013-06-26 21:04:20 +01:00
- match: { _index: test_1 }
- match: { _type: test }
2013-07-11 02:21:56 +02:00
- match: { _id: "1"}
2013-06-26 21:04:20 +01:00
- match: { _version: 1}
2013-06-26 21:18:14 +01:00
2013-06-26 21:04:20 +01:00
- do:
get:
index: test_1
type: test
id: 1
2013-06-26 21:04:20 +01:00
- match: { _index: test_1 }
- match: { _type: test }
2013-07-11 02:21:56 +02:00
- match: { _id: "1"}
2013-06-26 21:04:20 +01:00
- match: { _version: 1}
- match: { _source: { foo: bar }}
2013-06-26 21:18:14 +01:00
- do:
catch: conflict
create:
index: test_1
type: test
id: 1
body: { foo: bar }