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

[brightbox|compute] Update format tests for new attributes on Cloud IPs

This commit is contained in:
Paul Thornthwaite 2012-05-09 11:50:21 +01:00
parent 00896b88ac
commit 7c3ee38252

View file

@ -7,6 +7,7 @@ module Fog
module Interface; end
module LoadBalancer; end
module Server; end
module ServerGroup; end
module Zone; end
end
end
@ -30,6 +31,9 @@ NilClass.send :include, Fog::Brightbox::Nullable::LoadBalancer
Hash.send :include, Fog::Brightbox::Nullable::Server
NilClass.send :include, Fog::Brightbox::Nullable::Server
Hash.send :include, Fog::Brightbox::Nullable::ServerGroup
NilClass.send :include, Fog::Brightbox::Nullable::ServerGroup
Hash.send :include, Fog::Brightbox::Nullable::Zone
NilClass.send :include, Fog::Brightbox::Nullable::Zone
@ -61,6 +65,11 @@ class Brightbox
end
module Formats
module Struct
CIP_PORT_TRANSLATOR = {
"protocol" => String,
"incoming" => Integer,
"outgoing" => Integer
}
LB_LISTENER = {
"in" => Integer,
"out" => Integer,
@ -100,6 +109,7 @@ class Brightbox
"id" => String,
"resource_type" => String,
"url" => String,
"name" => Fog::Nullable::String,
"public_ip" => String,
"status" => String,
"reverse_dns" => String
@ -228,13 +238,16 @@ class Brightbox
"id" => String,
"resource_type" => String,
"url" => String,
"name" => Fog::Nullable::String,
"public_ip" => String,
"status" => String,
"reverse_dns" => String,
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
"account" => Brightbox::Compute::Formats::Nested::ACCOUNT,
"interface" => Fog::Brightbox::Nullable::Interface,
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
"server" => Fog::Brightbox::Nullable::Server
"server" => Fog::Brightbox::Nullable::Server,
"server_group" => Fog::Brightbox::Nullable::ServerGroup
}
FIREWALL_POLICY = {
@ -423,13 +436,16 @@ class Brightbox
"id" => String,
"resource_type" => String,
"url" => String,
"name" => Fog::Nullable::String,
"public_ip" => String,
"status" => String,
"reverse_dns" => String,
"port_translators" => [Brightbox::Compute::Formats::Struct::CIP_PORT_TRANSLATOR],
"account" => Fog::Brightbox::Nullable::Account,
"interface" => Fog::Brightbox::Nullable::Interface,
"load_balancer" => Fog::Brightbox::Nullable::LoadBalancer,
"server" => Fog::Brightbox::Nullable::Server
"server" => Fog::Brightbox::Nullable::Server,
"server_group" => Fog::Brightbox::Nullable::ServerGroup
}
FIREWALL_POLICY = {