1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/serverlove/requests/compute/image_tests.rb

31 lines
727 B
Ruby
Raw Normal View History

2012-04-29 12:59:24 -04:00
Shindo.tests('Fog::Compute[:serverlove] | drive requests', ['serverlove']) do
@image_format = {
'id' => String,
'name' => String,
'user' => String,
'size' => Integer,
'claimed' => Fog::Nullable::String
'status' => String,
'encryption_cipher' => String
}
tests('success') do
attributes = { name: 'Test', size: 12345 }
tests("#create_image").formats(@image_format) do
@image = Fog::Compute[:serverlove].create(attributes)
@image
end
tests('#list_images_detail').formats({'images' => [@image_format]}) do
Fog::Compute[:serverlove].images
end
@image.destroy
end
end