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

Enhance and add more tests for ResizeRequest #68502

Merged
merged 9 commits into from Apr 26, 2021

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Feb 4, 2021

This PR relates to #65714 and follows #67705.

The main changes of this PR are:

  1. Add the missing equals and hashCode methods in ResizeRequest.
  2. Add the newly added max_single_primary_size parameter to the XContent of ResizeRequest . (edit: pulled out into Add max_single_primary_size to ResizeRequest's toXContent #68793)
  3. Add more test methods such as testEqualsAndHashCode and testSerializeRequest for ResizeRequest.

@gaobinlong
Copy link
Contributor Author

@dakrone ,can you take a look at this PR?

@dakrone dakrone self-requested a review February 4, 2021 17:03
@dakrone dakrone added :Data Management/Indices APIs APIs to create and manage indices and templates v7.12.0 v8.0.0 labels Feb 4, 2021
@elasticmachine elasticmachine added the Team:Data Management Meta label for data/management team label Feb 4, 2021
@elasticmachine
Copy link
Collaborator

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

@dakrone

This comment has been minimized.

@dakrone

This comment has been minimized.

@joegallo

This comment has been minimized.

@dakrone dakrone removed their request for review March 11, 2021 21:50
by converting it to unchecked exceptions, and then use it to create
random create index requests.
to cover testEqualsAndHashcode and testSerialization
This is handled for us by AbstractWireTestCase#testEqualsAndHashcode
@joegallo
Copy link
Contributor

@gaobinlong thanks again for your patience, and apologies that it took me so long to get back to this. I've added some new commits -- do you think this is still a fair attempt at what you were trying to accomplish?

@gaobinlong
Copy link
Contributor Author

Yeah, it looks great! That's really what I wanted!

@joegallo joegallo requested a review from dakrone April 26, 2021 14:02
@joegallo
Copy link
Contributor

@dakrone I don't think it's fair for me to be a reviewer here anymore -- do you mind taking a look at things?

Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks both of you for iterating on it

@joegallo joegallo merged commit eaa59fb into elastic:master Apr 26, 2021
@probakowski probakowski added the >test Issues or PRs that are addressing/adding tests label Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v7.14.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants