Skip to content

Conversation

codebrain
Copy link
Contributor

Fixes #3851

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Is there a simple integration test that we can perform to assert failures map?

@codebrain
Copy link
Contributor Author

LGTM 👍

Is there a simple integration test that we can perform to assert failures map?

That really means creating an integration test that creates a failure on the node and then asserts this is present. Whilst we could do this, I don't see that it provides much value over a unit test.

The class maps this object: https://github.com/elastic/elasticsearch/blob/a086c665a35af32e60e6d23ab6ca75fcf085b46f/client/rest-high-level/src/main/java/org/elasticsearch/client/NodesResponseHeader.java#L55

I can look to add something to NodesUsageUnitTests for this.

@codebrain codebrain merged commit 6507699 into 7.2 Aug 13, 2019
@codebrain codebrain deleted the feature/7.2/node-failures branch August 13, 2019 06:52
codebrain added a commit that referenced this pull request Aug 16, 2019
russcam pushed a commit that referenced this pull request Sep 3, 2019
Fixes #3851

(cherry picked from commit 6f0c7b9)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants