Skip to content

Commit

Permalink
Merge pull request ManageIQ#18474 from d-m-u/fixing_service_template_…
Browse files Browse the repository at this point in the history
…factory

Add service_template_ansible_tower factory, inherit naming from parent
  • Loading branch information
bdunne authored Feb 21, 2019
2 parents 2665784 + 6cb9b49 commit 4306d94
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spec/factories/service_template.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FactoryBot.define do
factory :service_template
factory :service_template do
sequence(:name) { |n| "service_template_#{seq_padded_for_sorting(n)}" }
end
factory :service_template_orchestration, :class => 'ServiceTemplateOrchestration', :parent => :service_template
factory :service_template_ansible_playbook, :class => 'ServiceTemplateAnsiblePlaybook', :parent => :service_template
factory :service_template_ansible_tower, :class => 'ServiceTemplateAnsibleTower', :parent => :service_template
factory :service_template_container_template, :class => 'ServiceTemplateContainerTemplate', :parent => :service_template
factory :service_template_transformation_plan, :class => 'ServiceTemplateTransformationPlan', :parent => :service_template do
sequence(:name) { |n| "service_template_#{seq_padded_for_sorting(n)}" }
end
factory :service_template_transformation_plan, :class => 'ServiceTemplateTransformationPlan', :parent => :service_template

trait :with_provision_resource_action_and_dialog do
after(:create) do |x|
Expand Down

0 comments on commit 4306d94

Please sign in to comment.