diff options
author | Eugene Kirpichov <ekirpichov@gmail.com> | 2012-11-06 19:08:44 +0400 |
---|---|---|
committer | Eugene Kirpichov <ekirpichov@gmail.com> | 2012-11-06 19:09:12 +0400 |
commit | 3624b0b5f6a18d000ef3b7723f10579d448a4063 (patch) | |
tree | 2f1863604dc90c5428d602a83e9400405333b450 /spec | |
parent | 161f257017f4bc51e08bcc6fa2f29c0674b5ce0e (diff) |
Listen on multiple virtual IP addresses
Diffstat (limited to 'spec')
-rw-r--r-- | spec/defines/listen_spec.rb | 6 |
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 |