Skip to content

Commit

Permalink
[ibm] Nullable formats for attributes that may not be returned
Browse files Browse the repository at this point in the history
  • Loading branch information
decklin committed Mar 21, 2012
1 parent 7725d07 commit 41a964c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion tests/ibm/requests/compute/address_tests.rb
Expand Up @@ -8,7 +8,9 @@
"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
Expand Down
6 changes: 3 additions & 3 deletions tests/ibm/requests/compute/image_tests.rb
Expand Up @@ -5,16 +5,16 @@
'visibility' => String,
'platform' => String,
'owner' => String,
'architecture' => String,
'architecture' => Fog::Nullable::String,
'createdTime' => Integer,
'location' => String,
'productCodes' => Array,
'name' => String,
'id' => String,
'description' => String,
'supportedInstanceTypes' => Array,
'manifest' => String,
'documentation' => String
'manifest' => Fog::Nullable::String,
'documentation' => Fog::Nullable::String,
}

# TODO: Actually check this format
Expand Down
8 changes: 5 additions & 3 deletions tests/ibm/requests/compute/instance_tests.rb
Expand Up @@ -14,16 +14,18 @@
'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 = {
Expand Down

0 comments on commit 41a964c

Please sign in to comment.