-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Exclude invalid url-encoded strings from randomized tests #71085
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exclude invalid url-encoded strings from randomized tests #71085
Conversation
Pinging @elastic/es-core-features (Team:Core/Features) |
processor.execute(ingestDocument); | ||
assertThat(ingestDocument.getFieldValue(targetFieldName, expectedResultType()), equalTo(expectedResult(fieldValue))); | ||
} | ||
|
||
protected boolean isSupportedValue(Object value) { | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the default should return true
here? Because now if this method isn't overwritten, the do-while loop never ends (i think this is why the some of these test fail).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, thanks. I renamed the isSupportedValue
method from isUnsupportedValue
but forgot to change the default return value. 🤦♂️
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The randomized testing framework produces some input strings that are not valid URL-encoded strings so the URLDecodeProcessor correctly throws an exception. This change retries any tests that use a string that cannot be URL decoded.
Fixes #71077.