Skip to content

Commit

Permalink
Add service_template_ansible_tower factory and inherit naming from pa…
Browse files Browse the repository at this point in the history
…rent
  • Loading branch information
d-m-u committed Feb 21, 2019
1 parent 2665784 commit 6cb9b49
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 6cb9b49

Please sign in to comment.