Sha256: d0920d87a0c4c0c10ca0d94547adf48f49387a22e76bb6c6fbd786c63f29c49d
Contents?: true
Size: 770 Bytes
Versions: 33
Compression:
Stored size: 770 Bytes
Contents
module Fog module Network class OpenStack 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::Network::OpenStack::NotFound end end end end end end
Version data entries
33 entries across 31 versions & 3 rubygems