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

[Test] Improve test assert for better message on failure #76543

Merged
merged 2 commits into from
Aug 17, 2021

Conversation

ywangd
Copy link
Member

@ywangd ywangd commented Aug 16, 2021

This PR adjusts assertions in testPagination so that more detailed messages would be made available on failures. For example, if the sorted keys do not match the expected order, it now shows all keys for better context instead of just the single mismatched key.

Relates: #76542

@ywangd ywangd added >test Issues or PRs that are addressing/adding tests :Security/Security Security issues without another label v7.15.0 v8.0.0-alpha1 labels Aug 16, 2021
@ywangd ywangd requested a review from tvernum August 16, 2021 01:08
@elasticmachine elasticmachine added the Team:Security Meta label for security team label Aug 16, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@ywangd
Copy link
Member Author

ywangd commented Aug 17, 2021

@elasticmachine update branch

@ywangd ywangd merged commit add0b77 into elastic:master Aug 17, 2021
ywangd added a commit to ywangd/elasticsearch that referenced this pull request Aug 17, 2021
This PR adjusts assertions in testPagination so that more detailed messages
would be made available on failures. For example, if the sorted keys do not
match the expected order, it now shows all keys for better context instead of
just the single mismatched key.

Relates: elastic#76542
ywangd added a commit that referenced this pull request Aug 17, 2021
…6596)

* [Test] Improve assertions for better messages on failure (#76543)

This PR adjusts assertions in testPagination so that more detailed messages
would be made available on failures. For example, if the sorted keys do not
match the expected order, it now shows all keys for better context instead of
just the single mismatched key.

Relates: #76542

* fix for 7.x quirks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Security/Security Security issues without another label Team:Security Meta label for security team >test Issues or PRs that are addressing/adding tests v7.15.0 v8.0.0-alpha2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants