2011-06-16 19:28:54 -04:00
|
|
|
Shindo.tests("Fog::Compute[:aws] | volume", ['aws']) do
|
2011-03-21 19:45:52 -04:00
|
|
|
|
2011-06-16 19:28:54 -04:00
|
|
|
@server = Fog::Compute[:aws].servers.create
|
2011-03-21 19:45:52 -04:00
|
|
|
@server.wait_for { ready? }
|
|
|
|
|
2011-06-16 19:28:54 -04:00
|
|
|
model_tests(Fog::Compute[:aws].volumes, {:availability_zone => @server.availability_zone, :size => 1, :device => '/dev/sdz1'}, true) do
|
2011-04-04 17:57:13 -04:00
|
|
|
|
|
|
|
@instance.wait_for { ready? }
|
2011-04-27 16:19:19 -04:00
|
|
|
|
2011-03-21 19:45:52 -04:00
|
|
|
tests('#server = @server').succeeds do
|
|
|
|
@instance.server = @server
|
|
|
|
end
|
|
|
|
|
|
|
|
@instance.wait_for { state == 'in-use' }
|
|
|
|
|
|
|
|
tests('#server = nil').succeeds do
|
|
|
|
@instance.server = nil
|
|
|
|
end
|
|
|
|
|
|
|
|
@instance.wait_for { ready? }
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
@server.destroy
|
|
|
|
|
2011-04-27 16:19:19 -04:00
|
|
|
end
|