Skip to content

Commit 93bacbd

Browse files
committed
[CI] Test Runner: Adds 'error_parsing_field' cas to catching errors
1 parent afffce4 commit 93bacbd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

elasticsearch-api/api-spec-testing/rspec_matchers.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ def compare_string_response(expected_string, response)
298298
actual_error.is_a?(Elasticsearch::Transport::Transport::Errors::Unauthorized)
299299
when 'forbidden'
300300
actual_error.is_a?(Elasticsearch::Transport::Transport::Errors::Forbidden)
301+
when /error parsing field/
302+
message =~ /\[400\]/ ||
303+
actual_error.is_a?(Elasticsearch::Transport::Transport::Errors::BadRequest)
301304
else
302305
message =~ /#{expected_error}/
303306
end

0 commit comments

Comments
 (0)