Sha256: cded75bd401f26af0c0b052c413e17488378c8900ea4fa59c40121631917b90c
Contents?: true
Size: 650 Bytes
Versions: 31
Compression:
Stored size: 650 Bytes
Contents
module Fog module Compute class OpenStack class Real def list_hypervisors(options = {}) request( :expects => 200, :method => 'GET', :path => 'os-hypervisors', :query => options ) end end class Mock def list_hypervisors(_options = {}) response = Excon::Response.new response.status = 200 response.body = {'hypervisors' => [ {"hypervisor_hostname" => "fake-mini", "id" => 2, "state" => "up", "status" => "enabled"} ]} response end end end end end
Version data entries
31 entries across 29 versions & 3 rubygems