Sha256: 033ea1e0ad246e99a65b5a65ba274c0960e9b712528f0812d9d47f73a220bfc0
Contents?: true
Size: 625 Bytes
Versions: 51
Compression:
Stored size: 625 Bytes
Contents
module Fog module Network class OpenStack class Real def get_lb_pool(pool_id) request( :expects => [200], :method => 'GET', :path => "lb/pools/#{pool_id}" ) end end class Mock def get_lb_pool(pool_id) response = Excon::Response.new if data = self.data[:lb_pools][pool_id] response.status = 200 response.body = { 'pool' => data } response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
51 entries across 51 versions & 3 rubygems