2013-06-28 13:44:13 -04:00
|
|
|
---
|
|
|
|
"External version":
|
2013-07-01 09:58:23 -04:00
|
|
|
|
2013-06-28 13:44:13 -04:00
|
|
|
- skip:
|
|
|
|
version: "0 - 0.90.9"
|
|
|
|
reason: "Versions not supported by update API before 1.0.0"
|
|
|
|
|
|
|
|
- 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 }
|