Skip to content

Exclude invalid url-encoded strings from randomized tests#71085

Merged
danhermann merged 4 commits intoelastic:masterfrom
danhermann:71077_urldecodeprocessortests_testtargetfield_failure
Apr 1, 2021
Merged

Exclude invalid url-encoded strings from randomized tests#71085
danhermann merged 4 commits intoelastic:masterfrom
danhermann:71077_urldecodeprocessortests_testtargetfield_failure

Conversation

@danhermann
Copy link
Copy Markdown
Contributor

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.

@danhermann danhermann added >test Issues or PRs that are addressing/adding tests :Distributed/Ingest Node Execution or management of Ingest Pipelines v8.0.0 v7.13.0 v7.12.1 labels Mar 30, 2021
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Mar 30, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

}

protected boolean isSupportedValue(Object value) {
return false;
Copy link
Copy Markdown
Member

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).

Copy link
Copy Markdown
Contributor Author

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. 🤦‍♂️

@danhermann
Copy link
Copy Markdown
Contributor Author

@elasticmachine update branch

Copy link
Copy Markdown
Member

@jbaiera jbaiera left a comment

Choose a reason for hiding this comment

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

LGTM

@danhermann danhermann merged commit 370ce5d into elastic:master Apr 1, 2021
@danhermann danhermann deleted the 71077_urldecodeprocessortests_testtargetfield_failure branch April 1, 2021 16:12
danhermann added a commit to danhermann/elasticsearch that referenced this pull request May 20, 2021
danhermann added a commit to danhermann/elasticsearch that referenced this pull request Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Ingest Node Execution or management of Ingest Pipelines Team:Data Management (obsolete) DO NOT USE. This team no longer exists. >test Issues or PRs that are addressing/adding tests v7.12.2 v7.13.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] URLDecodeProcessorTests testTargetField failing

6 participants