mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1875 from decklin/rs-lb-timeout
one more thing for rackspace LB timeout attribute
This commit is contained in:
commit
6d825962df
2 changed files with 3 additions and 3 deletions
|
@ -10,11 +10,11 @@ module Fog
|
|||
'protocol' => protocol,
|
||||
'virtualIps' => virtual_ips,
|
||||
'nodes' => nodes
|
||||
#Is algorithm allowed on create?
|
||||
}
|
||||
}
|
||||
|
||||
data['loadBalancer']['algorithm'] = options[:algorithm] if options.has_key? :algorithm
|
||||
data['loadBalancer']['timeout'] = options[:timeout] if options.has_key? :timeout
|
||||
|
||||
request(
|
||||
:body => Fog::JSON.encode(data),
|
||||
|
|
|
@ -167,10 +167,10 @@ Shindo.tests('Fog::Rackspace::LoadBalancers | load_balancer', ['rackspace']) do
|
|||
tests('create(...with algorithm...)') do
|
||||
attributes = LOAD_BALANCER_ATTRIBUTES.clone
|
||||
attributes[:algorithm] = 'LEAST_CONNECTIONS'
|
||||
attributes[:timeout] = 30
|
||||
attributes[:timeout] = 60
|
||||
@lb = @service.load_balancers.create attributes
|
||||
returns('LEAST_CONNECTIONS') { @lb.algorithm }
|
||||
returns(30) { @lb.timeout }
|
||||
returns(60) { @lb.timeout }
|
||||
|
||||
@lb.wait_for { ready? }
|
||||
|
||||
|
|
Loading…
Reference in a new issue