48 lines
916 B
YAML
48 lines
916 B
YAML
---
|
|
"Internal version":
|
|
|
|
- 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}
|