OpenSearch/rest-api-spec/test/create/35_external_version.yaml

34 lines
769 B
YAML
Raw Normal View History

2013-06-26 16:18:14 -04:00
---
"External version":
2013-06-26 16:18:14 -04:00
- do:
create:
index: test_1
type: test
id: 1
body: { foo: bar }
version_type: external
version: 5
2013-06-26 16:18:14 -04:00
- match: { _version: 5}
2013-06-26 16:18:14 -04:00
- do:
catch: conflict
create:
index: test_1
type: test
id: 1
body: { foo: bar }
version_type: external
version: 5
2013-06-26 16:18:14 -04:00
- do:
catch: conflict
create:
index: test_1
type: test
id: 1
body: { foo: bar }
version_type: external
version: 6