mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
15 lines
422 B
Ruby
15 lines
422 B
Ruby
Shindo.tests("Fog::Identity[:openstack] | roles", ['openstack']) do
|
|
@user = Fog::Identity[:openstack].users.all.first
|
|
@tenant = Fog::Identity[:openstack].tenants.all.first
|
|
@roles = Fog::Identity[:openstack].roles(:user => @user, :tenant => @tenant)
|
|
|
|
tests('success') do
|
|
tests('#all').succeeds do
|
|
@roles.all
|
|
end
|
|
|
|
tests('#get').succeeds do
|
|
@roles.get @roles.first.id
|
|
end
|
|
end
|
|
end
|