From a4d4652cf8d2f1bf4af14ceae87f36f89318eb55 Mon Sep 17 00:00:00 2001 From: Tina Fitzgerald Date: Wed, 7 Jun 2017 12:28:48 -0400 Subject: [PATCH] Add vm_migrate_task factory. https://bugzilla.redhat.com/show_bug.cgi?id=1422961 --- spec/factories/miq_request_task.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/factories/miq_request_task.rb b/spec/factories/miq_request_task.rb index fd9d36559d3..7601a549bd4 100644 --- a/spec/factories/miq_request_task.rb +++ b/spec/factories/miq_request_task.rb @@ -20,6 +20,9 @@ end end factory :miq_provision_vmware_via_pxe, :parent => :miq_provision_vmware, :class => "ManageIQ::Providers::Vmware::InfraManager::ProvisionViaPxe" + factory :vm_migrate_task, :parent => :miq_request_task, :class => "VmMigrateTask" do + request_type "vm_migrate" + end # Cloud factory :miq_provision_cloud, :parent => :miq_provision, :class => "ManageIQ::Providers::CloudManager::Provision"