mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
a27254badc
Updates the tenant_list tests to pass in *real* mode.
19 lines
519 B
Ruby
19 lines
519 B
Ruby
Shindo.tests('Fog::Compute[:openstack] | tenant requests', ['openstack']) do
|
|
|
|
@tenant_format = {
|
|
'id' => String,
|
|
'name' => String,
|
|
'enabled' => Fog::Boolean,
|
|
'description' => Fog::Nullable::String
|
|
}
|
|
|
|
tests('success') do
|
|
tests('#list_tenants').formats({'tenants_links' => Array, '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
|