module Fog module Baremetal class HuaweiCloud class Real def list_ports_detailed(options = {}) request( :expects => [200, 204], :method => 'GET', :path => 'ports/detail', :query => options ) end end class Mock def list_ports_detailed(_options = {}) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = {"ports" => data[:ports]} response end end end end end