1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/openstack/requests/compute/tenant_tests.rb
Dan Prince a27254badc OpenStack: update tenant_list tests
Updates the tenant_list tests to pass in *real* mode.
2013-01-25 21:48:52 -05:00

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