1
0
Fork 0
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:
Rodrigo Estebanez 2012-03-06 18:39:37 +01:00
parent 4e946b4297
commit 4f01c48a22

View file

@ -38,7 +38,16 @@ module Fog
class Mock
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