Skip to content

Commit

Permalink
Add VMWare vApp type to the new Orchestration type list
Browse files Browse the repository at this point in the history
  • Loading branch information
lgalis committed Apr 28, 2017
1 parent 175f2db commit b6dd115
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 b6dd115

Please sign in to comment.