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,
"mode" => Integer,
"hostname" => String,
"type" => Integer
"type" => Integer,
"instanceId" => Fog::Nullable::String,
"vlan" => Fog::Nullable::String,
}
# 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,
'platform' => String,
'owner' => String,
'architecture' => String,
'architecture' => Fog::Nullable::String,
'createdTime' => Integer,
'location' => String,
'productCodes' => Array,
@ -13,8 +13,8 @@ Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do
'id' => String,
'description' => String,
'supportedInstanceTypes' => Array,
'manifest' => String,
'documentation' => String
'manifest' => Fog::Nullable::String,
'documentation' => Fog::Nullable::String,
}
# TODO: Actually check this format

View file

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