Skip to content

Commit

Permalink
Add check on error message for negative test
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Froh <froh@amazon.com>
  • Loading branch information
msfroh committed May 24, 2023
1 parent 0fd3610 commit 87ab1b5
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,18 @@ teardown:
body: {
search_pipeline: {
"request_processors": [
"filter_query": {
"query": {
"woozlewuzzle": {
"field": "foo"
{
"filter_query": {
"query": {
"woozlewuzzle": {
"field": "foo"
}
}
}
}
]
}
}
- match: { status: 400 }
- match: { error.type: "parsing_exception"}
- match: { error.reason: "unknown query [woozlewuzzle]"}

0 comments on commit 87ab1b5

Please sign in to comment.