Skip to content

Commit

Permalink
Remove spec related code for deprecated Networks Load Balancer menu
Browse files Browse the repository at this point in the history
  • Loading branch information
GregP committed Jun 28, 2019
1 parent e722a2d commit 1890815
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 144 deletions.
3 changes: 0 additions & 3 deletions spec/controllers/load_balancer_controller_spec.rb

This file was deleted.

7 changes: 0 additions & 7 deletions spec/services/dialog_local_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -223,13 +223,6 @@
"ext_management_system", "providers", "/ems_cloud"
end

context "when the object is a LoadBalancer" do
let(:obj) { double(:class => ManageIQ::Providers::Amazon::NetworkManager::LoadBalancer, :id => 123) }

include_examples "DialogLocalService#determine_dialog_locals_for_custom_button return value",
"load_balancer", "load_balancers", "/load_balancer"
end

context "when the object is a NetworkRouter" do
let(:obj) { double(:class => ManageIQ::Providers::Amazon::NetworkManager::NetworkRouter, :id => 123) }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,6 @@
assert_nested_list(@ems, [@network_port], 'network_ports', 'All Network Ports')
end

# TODO: add more cloud providers as the LBaaS is implemented
if %w(amazon).include? t
it "show associated load balancers" do
assert_nested_list(@ems, [@load_balancer], 'load_balancers', 'All Load Balancers')
end
end
end

describe "#ems_network_form_fields" do
Expand Down

This file was deleted.

22 changes: 0 additions & 22 deletions spec/shared/controllers/shared_network_manager_context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,5 @@
:network_port => @network_port,
:address => "10.10.0.2")

if %w(amazon).include? t
@load_balancer = FactoryBot.create("load_balancer_#{t}".to_sym,
:ems_id => @ems.id,
:name => "Load Balancer")
@load_balancer_2 = FactoryBot.create("load_balancer_#{t}".to_sym)
@load_balancer_pool = FactoryBot.create("load_balancer_pool_#{t}".to_sym)
@load_balancer_listener = FactoryBot.create("load_balancer_listener_#{t}".to_sym,
:load_balancer => @load_balancer)
@load_balancer_pool_member = FactoryBot.create("load_balancer_pool_member_#{t}".to_sym,
:vm => @vm)
@load_balancer_health_check = FactoryBot.create("load_balancer_health_check_#{t}".to_sym)

FactoryBot.create("load_balancer_listener_pool".to_sym,
:load_balancer_pool => @load_balancer_pool,
:load_balancer_listener => @load_balancer_listener)
FactoryBot.create("load_balancer_pool_member_pool".to_sym,
:load_balancer_pool => @load_balancer_pool,
:load_balancer_pool_member => @load_balancer_pool_member)
FactoryBot.create("load_balancer_health_check_member".to_sym,
:load_balancer_health_check => @load_balancer_health_check,
:load_balancer_pool_member => @load_balancer_pool_member)
end
end
end
47 changes: 0 additions & 47 deletions spec/views/layouts/listnav/_load_balancer.html.haml_spec.rb

This file was deleted.

0 comments on commit 1890815

Please sign in to comment.