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_balancers/node_tests.rb

20 lines
496 B
Ruby
Raw Normal View History

Shindo.tests('Fog::Rackspace::LoadBalancers | node', ['rackspace']) do
pending if Fog.mocking?
2011-07-28 14:37:21 -04:00
given_a_load_balancer_service do
given_a_load_balancer do
model_tests(@lb.nodes, { :address => '1.1.1.2', :port => 80, :condition => 'ENABLED'}, false) do
2011-07-28 14:37:21 -04:00
@lb.wait_for { ready? }
2011-07-28 14:37:21 -04:00
tests("#save() => existing node with port = 88").succeeds do
@instance.port = 88
@instance.save
end
2011-07-28 14:37:21 -04:00
@lb.wait_for { ready? }
end
end
end
end