Sha256: a6c36bf6110fda8266ce6f212c4ad8fb5ef78286afcbfc8ce6c4253a08e8e699
Contents?: true
Size: 504 Bytes
Versions: 4
Compression:
Stored size: 504 Bytes
Contents
module Fog module Baremetal class HuaweiCloud 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
4 entries across 4 versions & 1 rubygems