mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|elasticache] Mock raises NotFound Exception when AWS does
This commit is contained in:
parent
1bc6b7df17
commit
4ed6000451
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ module Fog
|
|||
'PreferredAvailabilityZone' => 'us-east-1a'
|
||||
} : {})
|
||||
end
|
||||
if (id != nil) && (all_clusters.empty?)
|
||||
raise Fog::AWS::Elasticache::NotFound
|
||||
end
|
||||
response.body = {
|
||||
'CacheClusters' => all_clusters,
|
||||
'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id }
|
||||
|
|
Loading…
Add table
Reference in a new issue