1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

added a mock for Compute::RackspaceV2 delete_image; Compute::RackspaceV2 has not implemented mocking support however

This commit is contained in:
Kyle Rames 2012-12-12 08:56:16 -06:00
parent c7dc6f138a
commit c131c68aca
2 changed files with 15 additions and 0 deletions

View file

@ -54,9 +54,15 @@ module Fog
request :delete_attachment
class Mock
def initialize(options)
# prevents service initialization errors. This method should be implemented
end
def request(params)
Fog::Mock.not_implemented
end
end
class Real

View file

@ -17,6 +17,15 @@ module Fog
end
end
class Mock
def delete_image(image_id)
response = Excon::Response.new
response.status = 202
response.body = ""
end
end
end
end
end