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

41 lines
886 B
YAML

---
"External version":
- do:
update:
index: test_1
type: test
id: 1
version: 2
version_type: external
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { _version: 2 }
- do:
catch: conflict
update:
index: test_1
type: test
id: 1
version: 2
version_type: external
body:
doc: { foo: baz }
upsert: { foo: bar }
- do:
update:
index: test_1
type: test
id: 1
version: 3
version_type: external
body:
doc: { foo: baz }
upsert: { foo: bar }
- match: { _version: 3 }