Sha256: 9a0925ec54d0a701823b3110bc07660b5b4f86ab6958cab51016077c9f33197d
Contents?: true
Size: 716 Bytes
Versions: 22
Compression:
Stored size: 716 Bytes
Contents
module Fog module OpenStack class Network class Real def delete_floating_ip(floating_ip_id) request( :expects => 204, :method => 'DELETE', :path => "floatingips/#{floating_ip_id}" ) end end class Mock def delete_floating_ip(floating_ip_id) response = Excon::Response.new if list_floating_ips.body['floatingips'].map { |r| r['id'] }.include? floating_ip_id data[:floating_ips].delete(floating_ip_id) response.status = 204 response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems