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

48 lines
916 B
YAML
Raw Normal View History

2013-06-28 13:44:13 -04:00
---
"Internal version":
2013-06-28 13:44:13 -04:00
- do:
catch: conflict
update:
index: test_1
type: test
id: 1
version: 1
body:
doc: { foo: baz }
upsert: { foo: bar }
- do:
update:
index: test_1
type: test
id: 1
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { _version: 1}
- do:
catch: conflict
update:
index: test_1
type: test
id: 1
version: 2
body:
doc: { foo: baz }
upsert: { foo: bar }
- do:
update:
index: test_1
type: test
id: 1
version: 1
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { _version: 2}