-
Notifications
You must be signed in to change notification settings - Fork 900
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
Convert Automate Methods to new style using classes #12038
Labels
Comments
This was referenced Oct 24, 2016
This was referenced Nov 17, 2016
This was referenced Dec 13, 2016
Closed in favor of ManageIQ/manageiq-content#8 |
This was referenced Jan 19, 2017
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
May 11, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
May 11, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
May 11, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
May 12, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
May 12, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
lfu
pushed a commit
to lfu/manageiq-content
that referenced
this issue
May 22, 2017
Refactored the check_remove_from_provider method for Infrastructure Vm retirement. Updated tests. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Oct 4, 2017
This PR is based on on the issue below. ManageIQ/manageiq#12038
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Oct 4, 2017
This PR is based on on the issue below. ManageIQ/manageiq#12038
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Oct 5, 2017
This PR is based on on the issue below. ManageIQ/manageiq#12038
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 12, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 12, 2019
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
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested Modified method as requested
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested Modified method as requested Deleted comment and blank line
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for retirement_state equal 'retired' Changed to use a service method
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested Modified method as requested Deleted comment and blank line Removed extra log messages because Raise doesn't need them
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for retirement_state equal 'retired' Changed to use a service method Fixed whitespace
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 13, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested Modified method as requested Deleted comment and blank line Removed extra log messages because Raise doesn't need them Fixed rob error
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 14, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for retirement_state equal 'retired' Changed to use a service method Fixed whitespace Added comment to not raise
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 14, 2019
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
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Nov 14, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added test for service_retire_task = nil, was missing this in coverage Added test for retirement_state = 'retiring' as requested Modified method as requested Deleted comment and blank line Removed extra log messages because Raise doesn't need them Fixed rob error Fixed raise logic to 1 line
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Dec 10, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Dec 12, 2019
This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Since I refactored the method the old spec tests failed. Removed old spec test from orchestration_retirement_spec.rb in spec/automation/unit/method_validation
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 7, 2020
…ent. Refactored method and test. Removed old test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 14, 2020
…ent. Refactored method and test. Removed old test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added check for ems Removed storage profile as requested
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 14, 2020
Refactored method and created test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 16, 2020
Refactored method and created test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Fixed description
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 16, 2020
Refactored method and created test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Fixed description Changed ems logic in method as requested
billfitzgerald0120
added a commit
to billfitzgerald0120/manageiq-content
that referenced
this issue
Jan 16, 2020
…ent. Refactored method and test. Removed old test. This PR is based on the issue below. ManageIQ/manageiq#12038 @miq-bot add_label refactoring @miq-bot assign @tinaafitz Added check for ems Removed storage profile as requested Changed ems logic in method as requested
This was referenced Jan 21, 2020
Merged
This was referenced Mar 5, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Convert the Automate methods to new style using classes to facilitate testing outside the Automate Engine.
Notes:
This idea is borrowed from Python, which allows us to source in the file without executing any code. The if block gets executed only when we directly pass in the file to the ruby interpreter. When we test the method script we source in the file in the spec and then instantiate it for testing, it allows us to pass in a mock service for testing.
Good sample of a method
https://github.com/ManageIQ/manageiq/blob/master/db/fixtures/ae_datastore/ManageIQ/Cloud/Orchestration/Operations/Methods.class/__methods__/available_availability_zones.rb
Good sample of a spec
https://github.com/ManageIQ/manageiq/blob/master/spec/db/fixtures/ae_datastore/ManageIQ/Cloud/Orchestration/Operations/Methods.class/__methods__/available_availability_zones_spec.rb
The methods have been categorized based on different lifecycle's
ManageIQ/Cloud/Orchestration/Operations
ManageIQ/Cloud/Orchestration/Provisioning
ManageIQ/Cloud/Orchestration/Reconfiguration
ManageIQ/Cloud/Orchestration/Retirement
ManageIQ/Cloud/VM/Provisioning
ManageIQ/Cloud/VM/Retirement
ManageIQ/ConfigurationManagement/AnsibleTower/Operations
ManageIQ/ConfigurationManagement/AnsibleTower/Service/Provisioning
ManageIQ/Control/
ManageIQ/Deployment/ContainerProvider/System/
ManageIQ/Infrastructure/Cluster/Operations
ManageIQ/Infrastructure/Configured_System/Provisioning
ManageIQ/Infrastructure/Host/Operations
ManageIQ/Infrastructure/Host/Provisioning
ManageIQ/Infrastructure/VM/Migrate
ManageIQ/Infrastructure/VM/Operations
ManageIQ/Infrastructure/VM/Provisioning
ManageIQ/Infrastructure/VM/Reconfigure
ManageIQ/Infrastructure/VM/Retirement
ManageIQ/Service/Provisioning/
ManageIQ/Service/Retirement
ManageIQ/System
The text was updated successfully, but these errors were encountered: