Skip to content
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

testHlrcFromXContent() should respect assertToXContentEquivalence() #38453

Merged
merged 2 commits into from
Feb 8, 2019

Conversation

polyfractal
Copy link
Contributor

Tests can override assertToXContentEquivalence() in case their xcontent cannot be directly compared (e.g. due to insertion order in maps affecting the xcontent ordering). But the testHlrcFromXContent test hardcoded the equivalence test to true instead of consulting assertToXContentEquivalence()

Fixes #36034
Backport of #38232

Tests can override assertToXContentEquivalence() in case their xcontent
cannot be directly compared (e.g. due to insertion order in maps
affecting the xcontent ordering).  But the `testHlrcFromXContent` test
hardcoded the equivalence test to `true` instead of consulting
`assertToXContentEquivalence()`

Fixes elastic#36034
Backport of elastic#38232
@polyfractal polyfractal added >test Issues or PRs that are addressing/adding tests :Core/Features/Java High Level REST Client backport labels Feb 5, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@jasontedor jasontedor changed the base branch from 6.x to 6.7 February 6, 2019 13:09
@jasontedor jasontedor reopened this Feb 6, 2019
@polyfractal polyfractal merged commit b4cde4b into elastic:6.7 Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport >test Issues or PRs that are addressing/adding tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants