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

Added tests for Automate retirement generic methods. #6357

Merged
merged 1 commit into from Feb 2, 2016

Conversation

billfitzgerald0120
Copy link
Contributor

Automate - Retirement - Infrastructure added tests for pre_retirement and check_pre_retirement methods.

https://bugzilla.redhat.com/show_bug.cgi?id=1302130

@billfitzgerald0120
Copy link
Contributor Author

@mkanoor
Please review

@billfitzgerald0120
Copy link
Contributor Author

@gmcculloug
Please review

@gmcculloug gmcculloug changed the title Automate - Retirement - Infrastructure added generic calls Added generic calls for automate infrastructure retirement methods Jan 29, 2016
@gmcculloug
Copy link
Member

@billfitzgerald0120 @tinaafitz From what I see you added a common method call to check_pre_retirement/pre_retirement that responds to the "create" message, but the state-machine calling this instance is still passing the vendor as a message which means the new method will not be invoked. The tests are calling the method instances directly and not passing a message so they appear to work.

Would be help if you could better describe the changes you are trying to make here. Is the state-machine suppose to call with a vendor message now? If so, do we need the vendor-specific calls that still exist in the method instances?

@billfitzgerald0120 billfitzgerald0120 changed the title Added generic calls for automate infrastructure retirement methods Added tests for Automate retirement generic methods. Feb 1, 2016
@billfitzgerald0120
Copy link
Contributor Author

@gmcculloug
Please review

@gmcculloug
Copy link
Member

@billfitzgerald0120 @tinaafitz The tests are failing because you are not passing the vendor message parameter to automate MiqAeEngine.instantiate.

@billfitzgerald0120
Copy link
Contributor Author

@gmcculloug
Tests fixed

@miq-bot
Copy link
Member

miq-bot commented Feb 2, 2016

Checked commit billfitzgerald0120@49aa23e with ruby 2.2.3, rubocop 0.34.2, and haml-lint 0.13.0
2 files checked, 0 offenses detected
Everything looks good. ⭐

gmcculloug added a commit that referenced this pull request Feb 2, 2016
Added tests for Automate retirement generic methods.
@gmcculloug gmcculloug merged commit e82846c into ManageIQ:master Feb 2, 2016
@gmcculloug gmcculloug added this to the Sprint 36 Ending Feb 16, 2016 milestone Feb 2, 2016
@billfitzgerald0120 billfitzgerald0120 deleted the retirement_generic branch February 2, 2016 22:53
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.

None yet

4 participants