From e8e3a246055c6e79a0a6be0d8cfe425d438265f9 Mon Sep 17 00:00:00 2001 From: Daniel Berger Date: Tue, 12 Feb 2019 08:16:05 -0500 Subject: [PATCH] Update specs to conform to ConversionHost validations. --- ...service_service_template_transformation_plan_task_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/service_models/miq_ae_service_service_template_transformation_plan_task_spec.rb b/spec/service_models/miq_ae_service_service_template_transformation_plan_task_spec.rb index 558ef81af..545a5eaf0 100644 --- a/spec/service_models/miq_ae_service_service_template_transformation_plan_task_spec.rb +++ b/spec/service_models/miq_ae_service_service_template_transformation_plan_task_spec.rb @@ -1,6 +1,7 @@ describe MiqAeMethodService::MiqAeServiceServiceTemplateTransformationPlanTask do - let(:host) { FactoryBot.create(:host) } - let(:vm) { FactoryBot.create(:vm_or_template) } + let(:ems) { FactoryBot.create(:ext_management_system, :zone => FactoryBot.create(:zone), :api_version => '4.2.4') } + let(:host) { FactoryBot.create(:host_redhat, :ext_management_system => ems) } + let(:vm) { FactoryBot.create(:vm_openstack) } 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) }