diff --git a/app/models/manageiq/providers/openshift/container_manager.rb b/app/models/manageiq/providers/openshift/container_manager.rb index ce213894..bf0f1f2c 100644 --- a/app/models/manageiq/providers/openshift/container_manager.rb +++ b/app/models/manageiq/providers/openshift/container_manager.rb @@ -39,4 +39,8 @@ def create_project(project) rescue KubeException => e raise MiqException::MiqProvisionError, "Unexpected Exception while creating project: #{e}" end + + def supported_catalog_types + %w(generic_container_template).freeze + end end diff --git a/spec/models/manageiq/providers/openshift/container_manager_spec.rb b/spec/models/manageiq/providers/openshift/container_manager_spec.rb new file mode 100644 index 00000000..d647f3f1 --- /dev/null +++ b/spec/models/manageiq/providers/openshift/container_manager_spec.rb @@ -0,0 +1,6 @@ +describe ManageIQ::Providers::Openshift::ContainerManager do + it "#supported_catalog_types" do + ems = FactoryGirl.create(:ems_openshift) + expect(ems.supported_catalog_types).to match_array(%w(generic_container_template)) + end +end