2011-08-04 17:21:22 -04:00
|
|
|
Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancers', ['rackspace']) do
|
2011-07-10 16:35:30 -04:00
|
|
|
|
2011-08-16 12:56:44 -04:00
|
|
|
pending if Fog.mocking?
|
|
|
|
|
2011-07-28 14:37:21 -04:00
|
|
|
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'}],
|
2012-05-15 17:38:45 -04:00
|
|
|
:nodes => [{ :address => '1.1.1.1', :port => 80, :condition => 'ENABLED'}]
|
2011-07-28 14:37:21 -04:00
|
|
|
},
|
|
|
|
false) do
|
|
|
|
@instance.wait_for { ready? }
|
|
|
|
end
|
2011-07-10 16:35:30 -04:00
|
|
|
end
|
|
|
|
end
|