mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
b7b7f51b0b
Fog::Compute connection was called outside of the Shindo blocks and failing if rackspace credentials were not present.
20 lines
430 B
Ruby
20 lines
430 B
Ruby
Shindo.tests('Fog::Compute::RackspaceV2 | images', ['rackspace']) do
|
|
service = Fog::Compute::RackspaceV2.new
|
|
|
|
image_id = nil
|
|
|
|
tests("success") do
|
|
tests("#all").succeeds do
|
|
images = service.images.all
|
|
image_id = images.first.id
|
|
end
|
|
|
|
tests("#get").succeeds do
|
|
service.images.get(image_id)
|
|
end
|
|
end
|
|
|
|
tests("failure").returns(nil) do
|
|
service.images.get('some_random_identity')
|
|
end
|
|
end
|