1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/hp/models/compute/address_tests.rb
Rupak Ganguly c2be59d56e Minor fix.
2012-04-27 15:35:59 -04:00

18 lines
425 B
Ruby

Shindo.tests("Fog::Compute[:hp] | address", ['hp']) do
@base_image_id = ENV["BASE_IMAGE_ID"] || 1242
model_tests(Fog::Compute[:hp].addresses, {}, true) do
@server = Fog::Compute[:hp].servers.create(:name => "fogservertests", :flavor_id => 100, :image_id => @base_image_id)
@server.wait_for { ready? }
tests('#server=').succeeds do
@instance.server = @server
end
@server.destroy
end
end