Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,13 @@ be caught and tested. For instance:
catch: missing
get:
index: test
type: test
type: test
id: 1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe,

# And, optionally, you can assert on the contents of the precise contents of the error message.

- match: { error.type: "illegal_argument_exception" }
- match: { error.reason: "The request contained an illegal argument" }
- match: { error.caused_by.reason: "The argument was illegal because ..." }
- match: { error.root_cause.0.type: "illegal_argument_exception" }
....

The argument to `catch` can be any of:
Expand Down