2011-08-04 17:21:22 -04:00
|
|
|
Shindo.tests('Fog::Rackspace::LoadBalancers | node', ['rackspace']) do
|
2011-07-14 15:20:53 -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
|
|
|
|
given_a_load_balancer do
|
2012-05-15 17:38:45 -04:00
|
|
|
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-14 15:20:53 -04:00
|
|
|
|
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-14 15:20:53 -04:00
|
|
|
|
2011-07-28 14:37:21 -04:00
|
|
|
@lb.wait_for { ready? }
|
2011-07-14 15:20:53 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|