Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks for passive failover and PE module paths #107

Merged
merged 1 commit into from
Jul 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions spec/acceptance/basic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ class { 'haproxy': }
describe 'dependency requirements' do
# C9712
describe 'without concat' do
before :all do shell("mv #{hosts.first[:distmoduledir]}/concat /tmp") end
before :all do shell("mv $(puppet apply --color=false -e 'notice(get_module_path(\"concat\"))'|grep concat|cut -d ' ' -f 3) /tmp") end
after :all do shell("mv /tmp/concat #{hosts.first[:distmoduledir]}") end
it 'should fail' do
apply_manifest(%{class { 'haproxy': }}, :expect_failures => true)
end
end
# C9712
describe 'without stdlib' do
before :all do shell("mv #{hosts.first[:distmoduledir]}/stdlib /tmp") end
before :all do shell("mv $(puppet apply --color=false -e 'notice(get_module_path(\"stdlib\"))'|grep stdlib|cut -d ' ' -f 3) /tmp") end
after :all do shell("mv /tmp/stdlib #{hosts.first[:distmoduledir]}") end
it 'should fail' do
apply_manifest(%{class { 'haproxy': }}, :expect_failures => true)
Expand Down
3 changes: 2 additions & 1 deletion spec/acceptance/listen_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,12 @@ class { 'haproxy': }
ipaddress => $::ipaddress_lo,
ports => '5555',
mode => 'http',
options => { 'option' => 'httpchk', },
}
haproxy::balancermember { 'port 5556':
listening_service => 'app00',
ports => '5556',
options => ['check','downinter 500'],
options => 'check',
}
haproxy::balancermember { 'port 5557':
listening_service => 'app00',
Expand Down