Sha256: 6913a6da01814df13aad8db166293a33a20f0e164b35825949a781e2ed8ea50c
Contents?: true
Size: 770 Bytes
Versions: 21
Compression:
Stored size: 770 Bytes
Contents
module Fog module OpenStack class Network class Real def delete_lbaas_healthmonitor(healthmonitor_id) request( :expects => 204, :method => 'DELETE', :path => "lbaas/healthmonitors/#{healthmonitor_id}" ) end end class Mock def delete_lbaas_healthmonitor(healthmonitor_id) response = Excon::Response.new if list_lbaas_healthmonitors.body['healthmonitors'].map { |r| r['id'] }.include? healthmonitor_id data[:lbaas_healthmonitors].delete(healthmonitor_id) response.status = 204 response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
21 entries across 21 versions & 3 rubygems