Skip to content

Commit

Permalink
Merge pull request #22584 from GilbertCherrie/create_workflow_factories
Browse files Browse the repository at this point in the history
Create workflow factories

(cherry picked from commit b58777c)
  • Loading branch information
kbrock authored and Fryguy committed Jul 26, 2023
1 parent 9e73915 commit 19d456f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/factories/configuration_script.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
factory :embedded_playbook,
:class => "ManageIQ::Providers::EmbeddedAnsible::AutomationManager::Playbook",
:parent => :configuration_script_payload

factory :embedded_workflow,
:class => "ManageIQ::Providers::Workflows::AutomationManager::Workflow",
:parent => :configuration_script_payload
factory :configuration_workflow,
:class => "ManageIQ::Providers::Awx::AutomationManager::ConfigurationWorkflow",
:parent => :configuration_script
Expand Down
6 changes: 6 additions & 0 deletions spec/factories/configuration_script_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@
:class => "ManageIQ::Providers::EmbeddedAnsible::AutomationManager::ConfigurationScriptSource" do
scm_url { "https://example.com/foo.git" }
end

factory :embedded_workflow_configuration_script_source,
:parent => :configuration_script_source,
:class => "ManageIQ::Providers::Workflows::AutomationManager::ConfigurationScriptSource" do
scm_url { "https://example.com/foo.git" }
end
end

0 comments on commit 19d456f

Please sign in to comment.