diff options
Diffstat (limited to 'spec/defines/listen_spec.rb')
-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 |