All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rest-api-spec.test.create.30_internal_version.yml Maven / Gradle / Ivy

The newest version!
---
"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 }

---
"Internal versioning with explicit version":

 - skip:
      version: " - 5.1.1"
      reason: validation logic only fixed from 5.1.2 onwards

 - do:
      catch: bad_request
      create:
          index:          test
          type:           test
          id:             3
          body:           { foo: bar }
          version:        5

 - match: { status: 400 }
 - match: { error.type: action_request_validation_exception }
 - match: { error.reason: "Validation Failed: 1: create operations do not support explicit versions. use index instead;" }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy