Sha256: 9e3bfd312b8a62468fc31c644ef9f90d140a83c05c7a078674d228f46989c3fc
Contents?: true
Size: 769 Bytes
Versions: 21
Compression:
Stored size: 769 Bytes
Contents
module Fog module OpenStack class Network class Real def get_ipsec_site_connection(ipsec_site_connection_id) request( :expects => [200], :method => 'GET', :path => "vpn/ipsec-site-connections/#{ipsec_site_connection_id}" ) end end class Mock def get_ipsec_site_connection(ipsec_site_connection_id) response = Excon::Response.new if data = self.data[:ipsec_site_connections][ipsec_site_connection_id] response.status = 200 response.body = {'ipsec_site_connection' => data} response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
21 entries across 21 versions & 3 rubygems