mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
19 lines
527 B
Ruby
19 lines
527 B
Ruby
Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancers', ['rackspace']) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
given_a_load_balancer_service do
|
|
@lb_name = 'fog' + Time.now.to_i.to_s
|
|
collection_tests(@service.load_balancers,
|
|
{
|
|
:name => @lb_name,
|
|
:protocol => 'HTTP',
|
|
:port => 80,
|
|
:virtual_ips => [{ :type => 'PUBLIC'}],
|
|
:nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
|
|
},
|
|
false) do
|
|
@instance.wait_for { ready? }
|
|
end
|
|
end
|
|
end
|