1
0
Fork 0
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:
Christian Paredes 2011-04-07 13:18:35 -07:00
parent 56d74c3c39
commit e076434bc0
4 changed files with 6 additions and 15 deletions

View file

@ -21,8 +21,8 @@ module Fog
attribute :storage
attribute :template
attr_accessor :password
attr_writer :private_key, :private_key_path, :public_key, :public_key_path, :username, :lb_applications, :lb_services, :lb_backends
attr_accessor :password, :lb_applications, :lb_services, :lb_backends
attr_writer :private_key, :private_key_path, :public_key, :public_key_path, :username
def initialize(attributes={})
self.flavor_id ||= '94fd37a7-2606-47f7-84d5-9000deda52ae'
@ -45,18 +45,6 @@ module Fog
connection.images.get(image_id)
end
def lb_applications
@lb_applications
end
def lb_backends
@lb_backends
end
def lb_services
@lb_services
end
def private_ip_address
nil
end

View file

@ -9,7 +9,8 @@ def compute_providers
Bluebox => {
:server_attributes => {
:image_id => 'a00baa8f-b5d0-4815-8238-b471c4c4bf72', # Ubuntu 9.10 64bit
:password => 'chunkybacon'
:password => 'chunkybacon',
:lb_applications => '0ea478ca-d528-4764-9828-fc5f222c8c8c'
},
:mocked => false
},

View file

@ -11,6 +11,7 @@ for provider, config in compute_providers
responds_to(:public_ip_address)
responds_to(:scp)
responds_to(:ssh)
responds_to(:lb_applications)
end
end

View file

@ -6,6 +6,7 @@ Shindo.tests('Bluebox::Compute | block requests', ['bluebox']) do
'hostname' => String,
'id' => String,
'ips' => [{'address' => String}],
'lb_applications => [{'lb_application_name' => String, 'lb_application_id' => String}]
'memory' => Integer,
'product' => Bluebox::Compute::Formats::PRODUCT,
'status' => String,