OpenSearch/rest-api-spec/test/index/30_internal_version.yaml

37 lines
662 B
YAML
Raw Normal View History

2013-06-26 16:04:20 -04:00
---
"Internal version":
2013-06-26 16:04:20 -04:00
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
- match: { _version: 1}
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
- match: { _version: 2}
- do:
catch: conflict
index:
index: test_1
type: test
id: 1
body: { foo: bar }
version: 1
- do:
index:
index: test_1
type: test
id: 1
body: { foo: bar }
version: 2
- match: { _version: 3 }