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

Use the new universal methods for suspending/resuming a provider #434

Merged
merged 1 commit into from
Dec 21, 2018

Conversation

skateman
Copy link
Member

Copy link

@slemrmartin slemrmartin left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@skateman
Copy link
Member Author

@slemrmartin are these methods still safe to use?

@slemrmartin
Copy link

@skateman yes, pause! and resume! are still entry points for this PR

@skateman skateman force-pushed the provider-enable-disable branch from c1fccb3 to cc4dd1b Compare December 19, 2018 12:51
@miq-bot
Copy link
Member

miq-bot commented Dec 19, 2018

Checked commit skateman@cc4dd1b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@juliancheal
Copy link
Member

👍 LGTM.

@jvlcek
Copy link
Member

jvlcek commented Dec 20, 2018

@skateman Since the goal is to try to have every PR include a related spec test perhaps you could update https://github.com/ManageIQ/manageiq-api/blob/master/spec/requests/providers_spec.rb to ensure the new methods are received.

It shouldn't be too hard to add.

Besides that 👍 LGTM

@skateman
Copy link
Member Author

@jvlcek there are already tests for this feature, I'm just changing the method to be called on the model. So I don't really understand what else should I test here, can you please clarify?

@jvlcek
Copy link
Member

jvlcek commented Dec 21, 2018

@skateman Understood and agreed. I was just thinking that maybe an
expect(X).to receive(:pause!) could be added to the pause a provider test but on second thought it's not overly valuable.

I'm OK with this PR as it is.

JoeV

@Fryguy Fryguy merged commit 65525ec into ManageIQ:master Dec 21, 2018
@Fryguy Fryguy added this to the Sprint 102 Ending Jan 7, 2019 milestone Dec 21, 2018
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.

6 participants