Skip to content

Commit

Permalink
Merge pull request #174 from mkanoor/supported_catalog_types
Browse files Browse the repository at this point in the history
Added supported_catalog_types
  • Loading branch information
agrare authored Dec 11, 2017
2 parents 66d9e37 + b8f1f92 commit a5ae793
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/manageiq/providers/redhat/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions spec/models/manageiq/providers/redhat/infra_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a5ae793

Please sign in to comment.