mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
16 lines
328 B
Ruby
16 lines
328 B
Ruby
Shindo.tests('Fog::Rackspace::Identity | roles', ['rackspace']) do
|
|
|
|
pending if Fog.mocking?
|
|
|
|
service = Fog::Rackspace::Identity.new
|
|
user = service.users.all.first
|
|
|
|
tests("#all").succeeds do
|
|
user.roles.all
|
|
end
|
|
|
|
tests("#get").succeeds do
|
|
role = user.roles.all.first
|
|
user.roles.get(role.identity)
|
|
end
|
|
end
|