Sha256: 7671070775e8289025686c8232a0b18716833f9ff29314828a3b3fbeeb313b18
Contents?: true
Size: 888 Bytes
Versions: 20
Compression:
Stored size: 888 Bytes
Contents
module Fog module OpenStack class Network class Real def delete_ipsec_site_connection(ipsec_site_connection_id) request( :expects => 204, :method => 'DELETE', :path => "vpn/ipsec-site-connections/#{ipsec_site_connection_id}" ) end end class Mock def delete_ipsec_site_connection(ipsec_site_connection_id) response = Excon::Response.new ip_site_connections = list_ipsec_site_connections.body['ipsec_site_connections'] if ip_site_connections.collect { |r| r['id'] }.include? ipsec_site_connection_id data[:ipsec_site_connections].delete(ipsec_site_connection_id) response.status = 204 response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems