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 suspend_processes mock

This commit is contained in:
Michael Hale 2012-12-03 10:48:42 -05:00
parent c3608d7d93
commit 2572d8381f

View file

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