mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
20 lines
478 B
Ruby
20 lines
478 B
Ruby
|
Shindo.tests('Fog::Compute[:openstack] | tenant requests', ['openstack']) do
|
||
|
|
||
|
@tenant_format = {
|
||
|
'id' => String,
|
||
|
'name' => String,
|
||
|
'enabled' => Fog::Boolean,
|
||
|
'description' => String
|
||
|
}
|
||
|
|
||
|
tests('success') do
|
||
|
tests('#list_tenants').formats({'tenants' => [@tenant_format]}) do
|
||
|
Fog::Compute[:openstack].list_tenants.body
|
||
|
end
|
||
|
|
||
|
tests('#set_tenant("admin")').succeeds do
|
||
|
Fog::Compute[:openstack].set_tenant("admin")
|
||
|
end
|
||
|
end
|
||
|
end
|