Skip to content

Commit

Permalink
Merge pull request #1201 from lgalis/add_vapp_orchestration_type_to_list
Browse files Browse the repository at this point in the history
Add VMWare vApp type to the Create Orchestration Template type list
  • Loading branch information
Dan Clarizio authored Apr 28, 2017
2 parents 70ba36c + b6dd115 commit 5f982cf
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/catalog/_ot_add.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
options_for_select({"Amazon CloudFormation" => "OrchestrationTemplateCfn",
"OpenStack Heat" => "OrchestrationTemplateHot",
"Microsoft Azure" => "OrchestrationTemplateAzure",
"VNF" => "OrchestrationTemplateVnfd",},
"VNF" => "OrchestrationTemplateVnfd",
"VMWare vApp" => "ManageIQ::Providers::Vmware::CloudManager::OrchestrationTemplate"},
@edit[:new][:type]),
:class => "selectpicker")
:javascript
Expand Down
13 changes: 13 additions & 0 deletions spec/views/catalog/_ot_add.html.haml_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
describe "catalog/_ot_add.html.haml" do
before do
set_controller_for_view("catalog")
set_controller_for_view_to_be_nonrestful
@edit = {:new => {}}
assign(:sb, :active_accordion => 'ot_accord')
end

it "the orchestration type dropdown includes the vApp type" do
render
expect(rendered).to include('VMWare vApp')
end
end

0 comments on commit 5f982cf

Please sign in to comment.