mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
23 lines
550 B
Ruby
23 lines
550 B
Ruby
|
module Fog
|
||
|
module Ecloud
|
||
|
class Compute
|
||
|
|
||
|
class Real
|
||
|
basic_request :delete_internet_service, 200, 'DELETE', {}, ""
|
||
|
end
|
||
|
|
||
|
class Mock
|
||
|
def delete_internet_service(service_uri)
|
||
|
if public_ip_internet_service = mock_data.public_ip_internet_service_from_href(service_uri)
|
||
|
public_ip_internet_service._parent.items.delete(public_ip_internet_service)
|
||
|
|
||
|
mock_it 200, '', { }
|
||
|
else
|
||
|
mock_error 200, "401 Unauthorized"
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|