Sha256: a0adebb36936c712efaf4c0599f2439efc07783a98dff6dd221106c1f4a855df
Contents?: true
Size: 502 Bytes
Versions: 22
Compression:
Stored size: 502 Bytes
Contents
module Fog module OpenStack class Baremetal class Real def get_port(port_id) request( :expects => [200, 204], :method => 'GET', :path => "ports/#{port_id}" ) end end class Mock def get_port(_port_id) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = data[:ports].first response end end end end end
Version data entries
22 entries across 22 versions & 3 rubygems