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

19 lines
315 B
YAML

---
"Internal version":
- do:
create:
index: test_1
type: test
id: 1
body: { foo: bar }
- match: { _version: 1}
- do:
catch: conflict
create:
index: test_1
type: test
id: 1
body: { foo: bar }