Sha256: c4caa527239127bdeb41bc86bea4c1842b145dc348cf23f38a6a678f37c63e72
Contents?: true
Size: 1.16 KB
Versions: 19
Compression:
Stored size: 1.16 KB
Contents
module Fog module Baremetal class OpenStack class Real def list_ports(options = {}) request( :expects => [200, 204], :method => 'GET', :path => 'ports', :query => options ) end end # class Real class Mock def list_ports(options = {}) response = Excon::Response.new response.status = [200, 204][rand(1)] 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 # def list_ports end # class Mock end # class OpenStack end # module Baremetal end # module Fog
Version data entries
19 entries across 19 versions & 3 rubygems