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