summaryrefslogtreecommitdiff
path: root/rest-api-spec/test/create/30_internal_version.yaml
blob: fcdb2332a4644f00a4e2024e13363dd59cfe5856 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
"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 }