rest-api-spec.test.create.30_internal_version.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-spec Show documentation
Show all versions of rest-api-spec Show documentation
Elasticsearch subproject :rest-api-spec
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;" }