mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
14 lines
467 B
Ruby
14 lines
467 B
Ruby
Shindo.tests("Fog::Image[:openstack] | images", ['openstack']) do
|
|
@instance = Fog::Image[:openstack].create_image({:name => "model test image"}).body
|
|
|
|
tests('success') do
|
|
tests('#find_by_id').succeeds do
|
|
image = Fog::Image[:openstack].images.find_by_id(@instance['image']['id'])
|
|
image.id == @instance['image']['id']
|
|
end
|
|
|
|
tests('#destroy').succeeds do
|
|
Fog::Image[:openstack].images.destroy(@instance['image']['id'])
|
|
end
|
|
end
|
|
end
|