Sha256: 5ae0f54e2ecfda203145b805d13bfd596ec9bd10be6fedd9f671609733d90a49
Contents?: true
Size: 640 Bytes
Versions: 39
Compression:
Stored size: 640 Bytes
Contents
module Fog module Network class OpenStack class Real def get_lb_member(member_id) request( :expects => [200], :method => 'GET', :path => "lb/members/#{member_id}" ) end end class Mock def get_lb_member(member_id) response = Excon::Response.new if data = self.data[:lb_members][member_id] response.status = 200 response.body = {'member' => data} response else raise Fog::Network::OpenStack::NotFound end end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems