Sha256: 6febd22649f833c672cf1ba04aecd3c8dd8411b32d5fb6523914765a068987f8
Contents?: true
Size: 1.17 KB
Versions: 31
Compression:
Stored size: 1.17 KB
Contents
module Fog module Compute class OpenStack 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
31 entries across 29 versions & 3 rubygems