1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ibm] Nullable formats for attributes that may not be returned

This commit is contained in:
Decklin Foster 2012-02-28 23:59:02 -05:00
parent 7725d07e31
commit 41a964c577
3 changed files with 11 additions and 7 deletions

View file

@ -8,7 +8,9 @@ Shindo.tests('Fog::Compute[:ibm] | address requests', ['ibm']) do
"id" => String, "id" => String,
"mode" => Integer, "mode" => Integer,
"hostname" => String, "hostname" => String,
"type" => Integer "type" => Integer,
"instanceId" => Fog::Nullable::String,
"vlan" => Fog::Nullable::String,
} }
# create_address doesn't return mode, hostname or type attributes # create_address doesn't return mode, hostname or type attributes

View file

@ -5,7 +5,7 @@ Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do
'visibility' => String, 'visibility' => String,
'platform' => String, 'platform' => String,
'owner' => String, 'owner' => String,
'architecture' => String, 'architecture' => Fog::Nullable::String,
'createdTime' => Integer, 'createdTime' => Integer,
'location' => String, 'location' => String,
'productCodes' => Array, 'productCodes' => Array,
@ -13,8 +13,8 @@ Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do
'id' => String, 'id' => String,
'description' => String, 'description' => String,
'supportedInstanceTypes' => Array, 'supportedInstanceTypes' => Array,
'manifest' => String, 'manifest' => Fog::Nullable::String,
'documentation' => String 'documentation' => Fog::Nullable::String,
} }
# TODO: Actually check this format # TODO: Actually check this format

View file

@ -14,16 +14,18 @@ Shindo.tests('Fog::Compute[:ibm] | instance requests', ['ibm']) do
'imageId' => String, 'imageId' => String,
'launchTime' => Integer, 'launchTime' => Integer,
'id' => String, 'id' => String,
'ip' => Fog::Nullable::String,
'volumes' => Array, 'volumes' => Array,
'root-only' => String, 'root-only' => Fog::Nullable::String,
'instanceType' => String, 'instanceType' => String,
'diskSize' => String, 'diskSize' => Fog::Nullable::String,
'requestName' => String, 'requestName' => String,
'secondaryIP' => Array, 'secondaryIP' => Array,
'status' => Integer, 'status' => Integer,
'software' => Array, 'software' => Array,
'expirationTime'=> Integer, 'expirationTime'=> Integer,
'owner' => String 'owner' => String,
'vlan' => Fog::Nullable::String,
} }
@instances_format = { @instances_format = {