Sha256: f74cac6088e0a42bb12b8d25905e2f80a43f21079b531ac51fd7c128ce40e3ad
Contents?: true
Size: 816 Bytes
Versions: 45
Compression:
Stored size: 816 Bytes
Contents
module Fog module OpenStack class Planning class Real def list_roles(options = {}) request( :expects => [200, 204], :method => 'GET', :path => 'roles', :query => options ) end end class Mock def list_roles(_options = {}) response = Excon::Response.new response.status = [200, 204][rand(2)] response.body = [ { "description" => "OpenStack hypervisor node. Can be wrapped in a ResourceGroup for scaling.\n", "name" => "compute", "uuid" => "f72c0656-5696-4c66-81a5-d6d88a48e385", "version" => 1 } ] response end end end end end
Version data entries
45 entries across 43 versions & 5 rubygems