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:
parent
c7dc6f138a
commit
c131c68aca
2 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue