Sha256: 90cbe458e18e708b14d0b47c7d14291611cdd8663a42c7b7788a3a9b16532e3d
Contents?: true
Size: 1.17 KB
Versions: 20
Compression:
Stored size: 1.17 KB
Contents
module Fog module OpenStack class Compute class Real def list_hypervisor_servers(hypervisor_id, options = {}) request( :expects => 200, :method => 'GET', :path => "os-hypervisors/#{hypervisor_id}/servers", :query => options ) end end class Mock def list_hypervisor_servers(hypervisor_id, _options = {}) response = Excon::Response.new response.status = 200 response.body = {'hypervisors' => [ { "hypervisor_hostname" => "fake-mini", "id" => hypervisor_id, "state" => "up", "status" => "enabled", "servers" => [ { "name" => "test_server1", "uuid" => "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" }, { "name" => "test_server2", "uuid" => "bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb" } ] } ]} response end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems