Skip to content

[7.x] Fixed indice assertion to loop through expected keys (#64684)#65813

Merged
cuff-links merged 2 commits intoelastic:7.xfrom
cuff-links:backport/7.x/pr-64684
May 13, 2020
Merged

[7.x] Fixed indice assertion to loop through expected keys (#64684)#65813
cuff-links merged 2 commits intoelastic:7.xfrom
cuff-links:backport/7.x/pr-64684

Conversation

@cuff-links
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.x:

* Changed assertion to loop through expected keys and confirm that they are contained within the array. Also made sure that the two arrays have the same length. Those two assertions should make sure that the contents are the same no matter the order of the keys.

* Changed assertion to loop through expected keys and confirm that they are contained within the array. Also made sure that the two arrays have the same length. Those two assertions should make sure that the contents are the same no matter the order of the keys.

* Fixed typo in function.

* Changed assertion per conversation.

* Updated assertion on second test.

* Fixed assertion for equality that's not strict.

* Added comment to code to explain why the arrays were sorted.

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@cuff-links cuff-links added the backport This PR is a backport of another PR label May 8, 2020
@cuff-links
Copy link
Copy Markdown
Contributor Author

jenkins test this

1 similar comment
@cuff-links
Copy link
Copy Markdown
Contributor Author

jenkins test this

@cuff-links
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cuff-links cuff-links merged commit 110a9c1 into elastic:7.x May 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants