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