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

[rackspace|lb] fixed broken tests because of API format changes

This commit is contained in:
Brian Hartsock 2012-06-25 23:37:21 -04:00
parent f09a7b7fe3
commit 881f12101a

View file

@ -1,5 +1,5 @@
SINGLE_NODE_FORMAT = {'address' => String, 'id' => Integer, 'status' => String, 'weight' => Fog::Nullable::Integer, 'port' => Integer, 'condition' => String, 'type' => String}
NODE_FORMAT = {'node' => SINGLE_NODE_FORMAT}
NODE_FORMAT = {'node' => SINGLE_NODE_FORMAT.merge({ 'metadata' => []})}
NODES_FORMAT = {'nodes' => [SINGLE_NODE_FORMAT]}
VIRTUAL_IP_FORMAT = {'type' => String, 'id' => Integer, 'type' => String, 'ipVersion' => String, 'address' => String}
VIRTUAL_IPS_FORMAT = { 'virtualIps' => [VIRTUAL_IP_FORMAT] }
@ -32,6 +32,17 @@ LOAD_BALANCER_USAGE_FORMAT = {
]
}
SSL_TERMINATION_FORMAT = {
'sslTermination' => {
'certificate' => String,
'privateKey' => String,
'enabled' => Fog::Boolean,
'securePort' => Integer,
'secureTrafficOnly' => Integer,
'intermediateCertificate' => Fog::Nullable::String
}
}
USAGE_FORMAT = {
'accountId' => Integer,
'loadBalancerUsages' => [
@ -137,6 +148,7 @@ LOAD_BALANCER_FORMAT = {
'nodes' => [SINGLE_NODE_FORMAT],
'created' => { 'time' => String },
'updated' => { 'time' => String },
'contentCaching' => { 'enabled' => Fog::Boolean }
}.merge(CONNECTION_LOGGING_FORMAT)
}