Skip to content

Remove RolloverIndexTestHelper #32559

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

Merged

Conversation

dakrone
Copy link
Member

@dakrone dakrone commented Aug 1, 2018

This removes the RolloverIndexTestHelper class in favor of making a couple of
getters publically accessible as well as custom building a response object using
JSON parsing.

Relates to #29823

This removes the `RolloverIndexTestHelper` class in favor of making a couple of
getters publically accessible as well as custom building a response object using
JSON parsing.

Relates to elastic#29823
@dakrone dakrone added the :Data Management/ILM+SLM Index and Snapshot lifecycle management label Aug 1, 2018
@dakrone dakrone requested review from colings86 and talevy August 1, 2018 18:37
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

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

As with the update settings PR I'm not sure about having the response parsed from a JSON string, it feels ugly to me and IMO more ugly than having the RollloverIndexTestHelper class. I'm wondering if we can't just make the Response constructor public?

Here this is especially ugly to me as the response is not trivial and could well change in the future. If it does, instead of immediately getting compile errors to add the new/remove the old information in the constructor call we would only find out about the change when running tests

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

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

LGTM

@dakrone dakrone merged commit 7ea7dd8 into elastic:index-lifecycle Aug 6, 2018
jasontedor pushed a commit that referenced this pull request Aug 17, 2018
* Remove RolloverIndexTestHelper

This removes the `RolloverIndexTestHelper` class in favor of making a couple of
getters publically accessible as well as custom building a response object using
JSON parsing.

Relates to #29823
@dakrone dakrone deleted the ilm-remove-rollover-test-helper branch February 4, 2019 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/ILM+SLM Index and Snapshot lifecycle management
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants