Sha256: 48a5b12308663208c47b40711fcc1fdcd888452f6b2709577532e42e048f9f4a
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
module Fog module Baremetal class HuaweiCloud class Real def list_ports(options = {}) request( :expects => [200, 204], :method => 'GET', :path => 'ports', :query => options ) end end class Mock def list_ports(_options = {}) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = { "ports" => [ { "address" => "fe:54:00:77:07:d9", "links" => [ { "href" => "http://localhost:6385/v1/ports/27e3153e-d5bf-4b7e-b517-fb518e17f34c", "rel" => "self" }, { "href" => "http://localhost:6385/ports/27e3153e-d5bf-4b7e-b517-fb518e17f34c", "rel" => "bookmark" } ], "uuid" => Fog::UUID.uuid } ] } response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems