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:
parent
145b917cdf
commit
c3608d7d93
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue