mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1509 from dprince/openstack_tenant_list_test_update
OpenStack: update tenant_list tests
This commit is contained in:
commit
0068126602
2 changed files with 3 additions and 2 deletions
|
@ -21,6 +21,7 @@ module Fog
|
|||
response = Excon::Response.new
|
||||
response.status = [200, 204][rand(1)]
|
||||
response.body = {
|
||||
'tenants_links' => [],
|
||||
'tenants' => [
|
||||
{'id' => '1',
|
||||
'description' => 'Has access to everything',
|
||||
|
|
|
@ -4,11 +4,11 @@ Shindo.tests('Fog::Compute[:openstack] | tenant requests', ['openstack']) do
|
|||
'id' => String,
|
||||
'name' => String,
|
||||
'enabled' => Fog::Boolean,
|
||||
'description' => String
|
||||
'description' => Fog::Nullable::String
|
||||
}
|
||||
|
||||
tests('success') do
|
||||
tests('#list_tenants').formats({'tenants' => [@tenant_format]}) do
|
||||
tests('#list_tenants').formats({'tenants_links' => Array, 'tenants' => [@tenant_format]}) do
|
||||
Fog::Compute[:openstack].list_tenants.body
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue