summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/update/30_internal_version.yaml
blob: c9f370638e9eb3e99bf03b5215c3ccc11a7729ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
"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}