From b8f1f921f0aa2df1426a46b66e77ca4fafd04d1d Mon Sep 17 00:00:00 2001 From: mkanoor Date: Fri, 8 Dec 2017 17:44:11 -0500 Subject: [PATCH] Added supported_catalog_types --- app/models/manageiq/providers/redhat/infra_manager.rb | 4 ++++ .../manageiq/providers/redhat/infra_manager_spec.rb | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/app/models/manageiq/providers/redhat/infra_manager.rb b/app/models/manageiq/providers/redhat/infra_manager.rb index 1faee3079..cd2f79013 100644 --- a/app/models/manageiq/providers/redhat/infra_manager.rb +++ b/app/models/manageiq/providers/redhat/infra_manager.rb @@ -144,6 +144,10 @@ def self.provision_class(via) end end + def supported_catalog_types + %w(redhat) + end + def vm_reconfigure(vm, options = {}) ovirt_services_for_reconfigure = ManageIQ::Providers::Redhat::InfraManager::OvirtServices::Builder.new(self) .build(:use_highest_supported_version => true).new(:ems => self) diff --git a/spec/models/manageiq/providers/redhat/infra_manager_spec.rb b/spec/models/manageiq/providers/redhat/infra_manager_spec.rb index cf70a3088..f7c6de5ce 100644 --- a/spec/models/manageiq/providers/redhat/infra_manager_spec.rb +++ b/spec/models/manageiq/providers/redhat/infra_manager_spec.rb @@ -460,4 +460,12 @@ end end end + + context 'catalog types' do + let(:ems) { FactoryGirl.create(:ems_redhat) } + + it "#supported_catalog_types" do + expect(ems.supported_catalog_types).to eq(%w(redhat)) + end + end end