Sha256: 8b867051ad70d3619d0bc35bbffc9236d99ed4d922a5f7ebee7d05c6bec0988c
Contents?: true
Size: 622 Bytes
Versions: 20
Compression:
Stored size: 622 Bytes
Contents
module Fog module OpenStack class Network 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::OpenStack::Network::NotFound end end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems