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/virtual_ip_tests.rb

15 lines
382 B
Ruby
Raw Normal View History

2011-07-18 22:45:47 -04:00
Shindo.tests('Fog::Rackspace::LoadBalancer | virtual_ip', ['rackspace']) do
2011-07-28 14:37:21 -04:00
given_a_load_balancer_service do
given_a_load_balancer do
model_tests(@lb.virtual_ips, { :type => 'PUBLIC'}, false) do
@lb.wait_for { ready? }
2011-07-18 22:45:47 -04:00
2011-07-28 14:37:21 -04:00
tests("#save => existing virtual IP").raises(Fog::Errors::Error) do
@instance.save
end
2011-07-18 22:45:47 -04:00
end
end
end
end