mirror of
https://github.com/fog/fog-aws.git
synced 2022-11-09 13:50:52 -05:00
Copy DB Snapshot mock correct response
This commit is contained in:
parent
a9e847d622
commit
9f8ef535d7
1 changed files with 6 additions and 6 deletions
|
@ -38,13 +38,13 @@ module Fog
|
||||||
response = Excon::Response.new
|
response = Excon::Response.new
|
||||||
response.status = 200
|
response.status = 200
|
||||||
snapshot_id = Fog::AWS::Mock.snapshot_id
|
snapshot_id = Fog::AWS::Mock.snapshot_id
|
||||||
data = {
|
data = self.data[:snapshots]["#{source_db_snapshot_identifier}"]
|
||||||
'snapshotId' => snapshot_id,
|
data['DBSnapshotIdentifier'] = snapshot_id
|
||||||
}
|
|
||||||
self.data[:snapshots][snapshot_id] = data
|
self.data[:snapshots][snapshot_id] = data
|
||||||
response.body = {
|
response.body = {
|
||||||
'requestId' => Fog::AWS::Mock.request_id
|
'requestId' => Fog::AWS::Mock.request_id,
|
||||||
}.merge!(data)
|
'CopyDBSnapshotResult' => {'DBSnapshot' => data.dup}
|
||||||
|
}
|
||||||
response
|
response
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue