mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
31 lines
727 B
Ruby
31 lines
727 B
Ruby
|
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
|