1
0
Fork 0
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:
Benton Roberts 2012-07-27 11:45:56 -04:00
parent 1bc6b7df17
commit 4ed6000451

View file

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