1
0
Fork 0
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:
David Vaz 2016-07-01 21:42:59 +05:30
parent ab7bc56f95
commit 84b406475a

View file

@ -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