2012-02-21 11:09:26 -05:00
|
|
|
Shindo.tests('Fog::Compute[:openstack] | tenant requests', ['openstack']) do
|
|
|
|
|
|
|
|
@tenant_format = {
|
|
|
|
'id' => String,
|
|
|
|
'name' => String,
|
|
|
|
'enabled' => Fog::Boolean,
|
2013-01-25 21:48:52 -05:00
|
|
|
'description' => Fog::Nullable::String
|
2012-02-21 11:09:26 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
tests('success') do
|
2013-01-25 21:48:52 -05:00
|
|
|
tests('#list_tenants').formats({'tenants_links' => Array, 'tenants' => [@tenant_format]}) do
|
2012-02-21 11:09:26 -05:00
|
|
|
Fog::Compute[:openstack].list_tenants.body
|
|
|
|
end
|
|
|
|
|
|
|
|
tests('#set_tenant("admin")').succeeds do
|
|
|
|
Fog::Compute[:openstack].set_tenant("admin")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|