Skip to content

Commit

Permalink
Merge pull request #275 from gmcculloug/fix_transformation_plan_task_…
Browse files Browse the repository at this point in the history
…spec

Add resource to conversion_host to pass validation

(cherry picked from commit 29cb3f9)
  • Loading branch information
mkanoor authored and simaishi committed Apr 22, 2019
1 parent e5a6db4 commit f525b10
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
describe MiqAeMethodService::MiqAeServiceServiceTemplateTransformationPlanTask do
let(:conversion_host_1) { FactoryGirl.create(:conversion_host) }
let(:conversion_host_2) { FactoryGirl.create(:conversion_host) }
let(:host) { FactoryBot.create(:host) }
let(:vm) { FactoryBot.create(:vm_or_template) }
let(:conversion_host_1) { FactoryBot.create(:conversion_host, :resource => host) }
let(:conversion_host_2) { FactoryBot.create(:conversion_host, :resource => vm) }
let(:service_conversion_host_2) { MiqAeMethodService::MiqAeServiceConversionHost.find(conversion_host_2.id) }
let(:task) { FactoryGirl.create(:service_template_transformation_plan_task, :conversion_host => conversion_host_1) }
let(:service_task) { MiqAeMethodService::MiqAeServiceServiceTemplateTransformationPlanTask.find(task.id) }
Expand Down

0 comments on commit f525b10

Please sign in to comment.