summaryrefslogtreecommitdiff
path: root/spec/defines/listen_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/defines/listen_spec.rb')
-rw-r--r--spec/defines/listen_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/defines/listen_spec.rb b/spec/defines/listen_spec.rb
index fa54409..31dd4c8 100644
--- a/spec/defines/listen_spec.rb
+++ b/spec/defines/listen_spec.rb
@@ -12,9 +12,9 @@ describe 'haproxy::listen' do
end
it { should contain_concat__fragment('croy_listen_block').with(
- 'order' => '20-croy',
+ 'order' => '20-croy-00',
'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
@@ -30,9 +30,9 @@ describe 'haproxy::listen' do
end
it { should contain_concat__fragment('apache_listen_block').with(
- 'order' => '20-apache',
+ 'order' => '20-apache-00',
'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
@@ -45,9 +45,9 @@ describe 'haproxy::listen' do
end
it { should contain_concat__fragment('apache_listen_block').with(
- 'order' => '20-apache',
+ 'order' => '20-apache-00',
'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