To examine an exception in rest tests, the exception should be caught, not ignored

This commit is contained in:
Clinton Gormley 2017-04-02 12:48:24 +02:00
parent e5f99e0bde
commit 5b3c662145
4 changed files with 5 additions and 5 deletions

View File

@ -26,13 +26,13 @@
reason: validation logic only fixed from 5.1.2 onwards
- do:
catch: request
create:
index: test
type: test
id: 3
body: { foo: bar }
version: 5
ignore: 400
- match: { status: 400 }
- match: { error.type: action_request_validation_exception }

View File

@ -6,6 +6,7 @@
reason: validation logic only fixed from 5.1.2 onwards
- do:
catch: request
create:
index: test
type: test
@ -13,13 +14,13 @@
body: { foo: bar }
version_type: external
version: 0
ignore: 400
- match: { status: 400 }
- match: { error.type: action_request_validation_exception }
- match: { error.reason: "Validation Failed: 1: create operations only support internal versioning. use index instead;" }
- do:
catch: request
create:
index: test
type: test
@ -27,7 +28,6 @@
body: { foo: bar }
version_type: external
version: 5
ignore: 400
- match: { status: 400 }
- match: { error.type: action_request_validation_exception }

View File

@ -106,9 +106,9 @@ setup:
version: " - 5.0.99"
reason: strict stats handling does not exist in 5.0
- do:
catch: request
indices.stats:
metric: [ fieldata ]
ignore: 400
- match: { status: 400 }
- match: { error.type: illegal_argument_exception }

View File

@ -27,9 +27,9 @@
version: " - 5.0.99"
reason: strict stats handling does not exist in 5.0
- do:
catch: request
nodes.stats:
metric: [ transprot ]
ignore: 400
- match: { status: 400 }
- match: { error.type: illegal_argument_exception }