Sha256: a2b75bc89b446ff3e4a0a10e4625eb47ae20ea53948632ccbe79d180d8cd6e6c
Contents?: true
Size: 749 Bytes
Versions: 20
Compression:
Stored size: 749 Bytes
Contents
module Fog module Identity class OpenStack class V2 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 V2 end # class OpenStack end # module Identity end # module Fog
Version data entries
20 entries across 20 versions & 3 rubygems