lib/fog/rackspace/requests/monitoring/delete_entity.rb in fog-1.22.0 vs lib/fog/rackspace/requests/monitoring/delete_entity.rb in fog-1.22.1
- old
+ new
@@ -1,23 +1,20 @@
module Fog
module Rackspace
class Monitoring
class Real
-
def delete_entity(entity_id)
request(
:expects => [204],
:method => 'DELETE',
:path => "entities/#{entity_id}"
)
end
end
class Mock
-
def delete_entity(entity_id)
-
if entity_id == -1
raise Fog::Rackspace::Monitoring::NotFound
end
response = Excon::Response.new
@@ -39,6 +36,5 @@
end
end
end
end
end
-