Sha256: dd8ade4a5c600d9d510e7f61183b9cde94919e4913b3f217598e3182c77cd8c3
Contents?: true
Size: 671 Bytes
Versions: 105
Compression:
Stored size: 671 Bytes
Contents
module Fog module Identity class OpenStack class Real def get_role(id) request( :expects => [200, 204], :method => 'GET', :path => "/OS-KSADM/roles/#{id}" ) end end class Mock def get_role(id) response = Excon::Response.new if data = self.data[:roles][id] response.status = 200 response.body = { 'role' => data } response else raise Fog::Identity::OpenStack::NotFound end end end # class Mock end # class OpenStack end # module Identity end # module Fog
Version data entries
105 entries across 105 versions & 16 rubygems