mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Adding in a few more tests for LB's.
This commit is contained in:
parent
56d74c3c39
commit
e076434bc0
4 changed files with 6 additions and 15 deletions
|
@ -21,8 +21,8 @@ module Fog
|
||||||
attribute :storage
|
attribute :storage
|
||||||
attribute :template
|
attribute :template
|
||||||
|
|
||||||
attr_accessor :password
|
attr_accessor :password, :lb_applications, :lb_services, :lb_backends
|
||||||
attr_writer :private_key, :private_key_path, :public_key, :public_key_path, :username, :lb_applications, :lb_services, :lb_backends
|
attr_writer :private_key, :private_key_path, :public_key, :public_key_path, :username
|
||||||
|
|
||||||
def initialize(attributes={})
|
def initialize(attributes={})
|
||||||
self.flavor_id ||= '94fd37a7-2606-47f7-84d5-9000deda52ae'
|
self.flavor_id ||= '94fd37a7-2606-47f7-84d5-9000deda52ae'
|
||||||
|
@ -45,18 +45,6 @@ module Fog
|
||||||
connection.images.get(image_id)
|
connection.images.get(image_id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def lb_applications
|
|
||||||
@lb_applications
|
|
||||||
end
|
|
||||||
|
|
||||||
def lb_backends
|
|
||||||
@lb_backends
|
|
||||||
end
|
|
||||||
|
|
||||||
def lb_services
|
|
||||||
@lb_services
|
|
||||||
end
|
|
||||||
|
|
||||||
def private_ip_address
|
def private_ip_address
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,8 @@ def compute_providers
|
||||||
Bluebox => {
|
Bluebox => {
|
||||||
:server_attributes => {
|
:server_attributes => {
|
||||||
:image_id => 'a00baa8f-b5d0-4815-8238-b471c4c4bf72', # Ubuntu 9.10 64bit
|
:image_id => 'a00baa8f-b5d0-4815-8238-b471c4c4bf72', # Ubuntu 9.10 64bit
|
||||||
:password => 'chunkybacon'
|
:password => 'chunkybacon',
|
||||||
|
:lb_applications => '0ea478ca-d528-4764-9828-fc5f222c8c8c'
|
||||||
},
|
},
|
||||||
:mocked => false
|
:mocked => false
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,6 +11,7 @@ for provider, config in compute_providers
|
||||||
responds_to(:public_ip_address)
|
responds_to(:public_ip_address)
|
||||||
responds_to(:scp)
|
responds_to(:scp)
|
||||||
responds_to(:ssh)
|
responds_to(:ssh)
|
||||||
|
responds_to(:lb_applications)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -6,6 +6,7 @@ Shindo.tests('Bluebox::Compute | block requests', ['bluebox']) do
|
||||||
'hostname' => String,
|
'hostname' => String,
|
||||||
'id' => String,
|
'id' => String,
|
||||||
'ips' => [{'address' => String}],
|
'ips' => [{'address' => String}],
|
||||||
|
'lb_applications => [{'lb_application_name' => String, 'lb_application_id' => String}]
|
||||||
'memory' => Integer,
|
'memory' => Integer,
|
||||||
'product' => Bluebox::Compute::Formats::PRODUCT,
|
'product' => Bluebox::Compute::Formats::PRODUCT,
|
||||||
'status' => String,
|
'status' => String,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue