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

Refactor start_retirement method for Infra VM Retirement. #600

Conversation

billfitzgerald0120
Copy link
Contributor

This PR is based on the issue below.
ManageIQ/manageiq#12038

@miq-bot add_label refactoring
@miq-bot assign @tinaafitz

@coveralls
Copy link

coveralls commented Nov 4, 2019

Pull Request Test Coverage Report for Build 3887

  • 33 of 33 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 97.199%

Totals Coverage Status
Change from base Build 3867: 0.03%
Covered Lines: 2950
Relevant Lines: 3035

💛 - 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
Copy link
Member

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?

Copy link
Contributor Author

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

@billfitzgerald0120 billfitzgerald0120 force-pushed the refactor_infra_vm_retirement_start_retirement branch from 92ec56a to 79d3e6b Compare November 12, 2019 15:59
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
@billfitzgerald0120 billfitzgerald0120 force-pushed the refactor_infra_vm_retirement_start_retirement branch from 79d3e6b to 3d63718 Compare November 14, 2019 21:38
@miq-bot
Copy link
Member

miq-bot commented Nov 14, 2019

Checked commit billfitzgerald0120@3d63718 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 👍

@billfitzgerald0120
Copy link
Contributor Author

@lfu I changed the method to be better. Can you review again ? Thank you

@tinaafitz tinaafitz merged commit f3b8a03 into ManageIQ:master Nov 15, 2019
@tinaafitz tinaafitz added this to the Sprint 125 Ending Nov 25, 2019 milestone Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants