Sha256: e33255510efd8f540ce7018ead4fa19d9a773365e92d399047f7a3175d78e465
Contents?: true
Size: 688 Bytes
Versions: 48
Compression:
Stored size: 688 Bytes
Contents
module Fog module Network class OpenStack class Real def get_ipsec_policy(ipsec_policy_id) request( :expects => [200], :method => 'GET', :path => "vpn/ipsecpolicies/#{ipsec_policy_id}" ) end end class Mock def get_ipsec_policy(ipsec_policy_id) response = Excon::Response.new if data = self.data[:ipsec_policies][ipsec_policy_id] response.status = 200 response.body = {'ipsecpolicy' => data} response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
48 entries across 46 versions & 3 rubygems