-
Notifications
You must be signed in to change notification settings - Fork 120
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
Refactor start_retirement method for Infra VM Retirement. #600
Refactor start_retirement method for Infra VM Retirement. #600
Conversation
Pull Request Test Coverage Report for Build 3887
💛 - Coveralls |
allow(ae_service).to receive(:create_notification) | ||
expect(ae_service).to receive(:create_notification).with(:type => :vm_retiring, :subject => svc_vm) | ||
expect(svc_vm).to receive(:start_retirement) | ||
expect { described_class.new(ae_service).main }.to_not raise_error |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@billfitzgerald0120 Can you make the same change here to check retirement_state
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the spec as you requested
92ec56a
to
79d3e6b
Compare
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for retirement_start eq retiring as requested Change method to add vm as a method
79d3e6b
to
3d63718
Compare
Checked commit billfitzgerald0120@3d63718 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
@lfu I changed the method to be better. Can you review again ? Thank you |
This PR is based on the issue below.
ManageIQ/manageiq#12038
@miq-bot add_label refactoring
@miq-bot assign @tinaafitz