1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/openstack/requests/identity/list_roles.rb
2012-04-30 10:34:59 +08:00

29 lines
479 B
Ruby

module Fog
module Identity
class OpenStack
class Real
def list_roles
request(
:expects => 200,
:method => 'GET',
:path => '/OS-KSADM/roles'
)
end
end
class Mock
def list_roles
response = Excon::Response.new
response.status = 200
response.body = { 'roles' => self.data[:roles] }
response
end
end
end
end
end