1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[brightbox] Test update of reverse DNS for CIP

This commit is contained in:
Paul Thornthwaite 2011-09-29 13:09:11 +01:00
parent 254123791b
commit 3ce68e47d1

View file

@ -42,6 +42,14 @@ Shindo.tests('Fog::Compute[:brightbox] | cloud ip requests', ['brightbox']) do
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
end
update_options = {:reverse_dns => "public.#{@server.id}.gb1.brightbox.com"}
tests("#update_cloud_ip('#{@cloud_ip_id}', #{update_options.inspect})") do
pending if Fog.mocking?
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, update_options)
formats(Brightbox::Compute::Formats::Full::CLOUD_IP) { result }
result = Fog::Compute[:brightbox].update_cloud_ip(@cloud_ip_id, {:reverse_dns => ""})
end
tests("#destroy_cloud_ip('#{@cloud_ip_id}')") do
pending if Fog.mocking?
result = Fog::Compute[:brightbox].destroy_cloud_ip(@cloud_ip_id)