mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws][auto_scaling]. Support delete_launch_configuration mocking
This commit is contained in:
parent
4e946b4297
commit
4f01c48a22
1 changed files with 10 additions and 1 deletions
|
@ -38,7 +38,16 @@ module Fog
|
||||||
class Mock
|
class Mock
|
||||||
|
|
||||||
def delete_launch_configuration(launch_configuration_name)
|
def delete_launch_configuration(launch_configuration_name)
|
||||||
Fog::Mock.not_implemented
|
unless self.data[:launch_configurations].delete(launch_configuration_name)
|
||||||
|
raise Fog::AWS::AutoScaling::ValidationError, "Launch configuration name not found - Launch configuration #{launch_configuration_name} not found"
|
||||||
|
end
|
||||||
|
|
||||||
|
response = Excon::Response.new
|
||||||
|
response.status = 200
|
||||||
|
response.body = {
|
||||||
|
'ResponseMetadata' => { 'RequestId' => Fog::AWS::Mock.request_id }
|
||||||
|
}
|
||||||
|
response
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue