forked from redhat-openstack/openstack-puppet-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow multiple balancermembers with the same url
Currently you can't set multiple balancermembers with the same url even if they are bind to different balancers. This commit fixes that unwanted behaviour.
- Loading branch information
1 parent
06974f7
commit 4a8b692
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
require 'spec_helper' | ||
|
||
describe 'apache::balancermember', :type => :define do | ||
let :pre_condition do | ||
'include apache | ||
apache::balancer {"balancer":} | ||
apache::balancer {"balancer-external":} | ||
apache::balancermember {"http://127.0.0.1:8080-external": url => "http://127.0.0.1:8080/", balancer_cluster => "balancer-external"} | ||
' | ||
end | ||
let :title do | ||
'http://127.0.0.1:8080/' | ||
end | ||
let :params do | ||
{ | ||
:options => [], | ||
:url => 'http://127.0.0.1:8080/', | ||
:balancer_cluster => 'balancer-internal' | ||
} | ||
end | ||
let :facts do | ||
{ | ||
:osfamily => 'Debian', | ||
:operatingsystem => 'Debian', | ||
:operatingsystemrelease => '6', | ||
:lsbdistcodename => 'squeeze', | ||
:id => 'root', | ||
:concat_basedir => '/dne', | ||
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', | ||
:kernel => 'Linux', | ||
} | ||
end | ||
describe "allows multiple balancermembers with the same url" do | ||
it { should contain_concat__fragment('BalancerMember http://127.0.0.1:8080/') } | ||
end | ||
end |