-
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
Refactoring available flavors #12523
Refactoring available flavors #12523
Conversation
@miq-bot add_labels automate, enhancement, refactoring, wip, euwe/no |
@pkomanek |
@pkomanek can the WIP be removed from this PR? |
@miq-bot remove_label wip |
{ 'service_template' => MiqAeMethodService::MiqAeServiceServiceTemplate.find(service_template.id) } | ||
end | ||
let(:ems) do | ||
@flavor1 = FactoryGirl.create(:flavor, :name => 'flavor1') |
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.
@pkomanek could the flavor1 and flavor2 also be lets instead of instance variable
end | ||
|
||
shared_examples_for "#having all flavors" do | ||
let(:flavor1) { FactoryGirl.create(:flavor, :name => 'flavor1') } |
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.
@pkomanek
These need to be service model and not the AR models, since Automate Methods work only with Service Models
Hi Madhu, PS: I get the same objects when I add these lines of code: ...................................................................................
[svc_model_flavor1, svc_model_flavor2] } ......................................................................................... On Fri, Nov 18, 2016 at 10:45 PM, Madhu Kanoor [email protected]
|
@pkomanek |
Checked commits pkomanek/manageiq@e68519a~...ac6e182 with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 |
Purpose or Intent
Refactoring the available_flavors method for the miq_ae_orchestration based on the issue bellow.
Links [Optional]
#12038