1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[aws|auto_scaling] Implement resume_processes mock

This commit is contained in:
Michael Hale 2012-12-03 10:43:01 -05:00
parent 145b917cdf
commit c3608d7d93

View file

@ -40,7 +40,16 @@ module Fog
class Mock
def resume_processes(auto_scaling_group_name, options = {})
Fog::Mock.not_implemented
unless self.data[:auto_scaling_groups].has_key?(auto_scaling_group_name)
raise Fog::AWS::AutoScaling::ValidationError.new("AutoScalingGroup name not found - no such group: #{auto_scaling_group_name}")
end
response = Excon::Response.new
response.status = 200
response.body = {
'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id }
}
response
end
end