summaryrefslogtreecommitdiff
path: root/spec/defines/listen_spec.rb
diff options
context:
space:
mode:
authorHunter Haugen <h.haugen@gmail.com>2012-11-07 10:59:08 -0800
committerHunter Haugen <h.haugen@gmail.com>2012-11-07 10:59:08 -0800
commitaf60ab3b4d49583c2ca3e1be467b940954b17446 (patch)
tree2f1863604dc90c5428d602a83e9400405333b450 /spec/defines/listen_spec.rb
parent161f257017f4bc51e08bcc6fa2f29c0674b5ce0e (diff)
parent3624b0b5f6a18d000ef3b7723f10579d448a4063 (diff)
Merge pull request #22 from Mirantis/listen-multiple-ips
Listen on multiple virtual IP addresses
Diffstat (limited to 'spec/defines/listen_spec.rb')
-rw-r--r--spec/defines/listen_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/defines/listen_spec.rb b/spec/defines/listen_spec.rb
index fa54409..6102285 100644
--- a/spec/defines/listen_spec.rb
+++ b/spec/defines/listen_spec.rb
@@ -14,7 +14,7 @@ describe 'haproxy::listen' do
it { should contain_concat__fragment('croy_listen_block').with(
'order' => '20-croy',
'target' => '/etc/haproxy/haproxy.cfg',
- 'content' => "\nlisten croy 1.1.1.1:18140\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
+ 'content' => "listen croy\n\n bind 1.1.1.1:18140\n\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
) }
end
context "when an array of ports is provided" do
@@ -32,7 +32,7 @@ describe 'haproxy::listen' do
it { should contain_concat__fragment('apache_listen_block').with(
'order' => '20-apache',
'target' => '/etc/haproxy/haproxy.cfg',
- 'content' => "\nlisten apache 23.23.23.23:80,23.23.23.23:443\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
+ 'content' => "listen apache\n\n bind 23.23.23.23:80\n\n bind 23.23.23.23:443\n\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
) }
end
context "when a comma-separated list of ports is provided" do
@@ -47,7 +47,7 @@ describe 'haproxy::listen' do
it { should contain_concat__fragment('apache_listen_block').with(
'order' => '20-apache',
'target' => '/etc/haproxy/haproxy.cfg',
- 'content' => "\nlisten apache 23.23.23.23:80,23.23.23.23:443\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
+ 'content' => "listen apache\n\n bind 23.23.23.23:80\n\n bind 23.23.23.23:443\n\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n"
) }
end
end