mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
added mock for modify_db_snapshot_attribute request
This commit is contained in:
parent
ab7bc56f95
commit
84b406475a
1 changed files with 16 additions and 0 deletions
|
@ -27,6 +27,22 @@ module Fog
|
||||||
}.merge!(params))
|
}.merge!(params))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
class Mock
|
||||||
|
#
|
||||||
|
# Usage
|
||||||
|
#
|
||||||
|
# Fog::AWS[:rds].modify_db_snapshot_attribute("snap-identifier", {"Add.MemberId"=>"389480430104"})
|
||||||
|
#
|
||||||
|
|
||||||
|
def modify_db_snapshot_attribute(db_snapshot_identifier, attributes)
|
||||||
|
response = Excon::Response.new
|
||||||
|
response.status = 200
|
||||||
|
response.body = {
|
||||||
|
'requestId' => Fog::AWS::Mock.request_id
|
||||||
|
}.merge!(data)
|
||||||
|
response
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue