1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/models/network/floating_ips_tests.rb

28 lines
465 B
Ruby
Raw Normal View History

2012-12-22 00:26:43 -05:00
Shindo.tests("Fog::Network[:openstack] | floating_ips", ['openstack']) do
@floating_ip = Fog::Network[:openstack].floating_ips.create(:floating_network_id => 'f0000000-0000-0000-0000-000000000000')
@floating_ips = Fog::Network[:openstack].floating_ips
tests('success') do
tests('#all').succeeds do
@floating_ips.all
end
tests('#get').succeeds do
@floating_ips.get @floating_ip.id
end
end
@floating_ip.destroy
end