Sha256: dc16e0e0618a9fdf8fef563eaa78d4b7c123ea8e4f9602a009ce8c482afaff81
Contents?: true
Size: 617 Bytes
Versions: 25
Compression:
Stored size: 617 Bytes
Contents
module Fog module Compute class OpenStack class Real def list_hosts(options = {}) request( :expects => [200, 203], :method => 'GET', :path => 'os-hosts', :query => options ) end end class Mock def list_hosts(_options = {}) response = Excon::Response.new response.status = 200 response.body = {"hosts" => [ {"host_name" => "host.test.net", "service" => "compute", "zone" => "az1"} ]} response end end end end end
Version data entries
25 entries across 23 versions & 3 rubygems