1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/models/load_balancer_tests.rb
2011-07-18 22:47:55 -04:00

22 lines
609 B
Ruby

Shindo.tests('Fog::Rackspace::LoadBalancer | load_balancer', ['rackspace']) do
@lb_name = 'fog' + Time.now.to_i.to_s
model_tests(Fog::Rackspace::LoadBalancer.new.load_balancers,
{
:name => @lb_name,
:protocol => 'HTTP',
:port => 80,
:virtual_ips => [{ :type => 'PUBLIC'}],
:nodes => [{ :address => '10.0.0.1', :port => 80, :condition => 'ENABLED'}]
},
false) do
@instance.wait_for { ready? }
tests('#save => saving existing with port = 88').succeeds do
@instance.port = 88
@instance.save
end
@instance.wait_for { ready? }
end
end