From b7c098f89d124946bbadb9002e423eac0ff736b1 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Wed, 10 Oct 2012 17:21:21 -0700 Subject: Change `virtual_ip` to `listen_ip` Because it's not really virtual. --- spec/defines/config_spec.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'spec') diff --git a/spec/defines/config_spec.rb b/spec/defines/config_spec.rb index a30737e..6a1af44 100644 --- a/spec/defines/config_spec.rb +++ b/spec/defines/config_spec.rb @@ -18,8 +18,9 @@ describe 'haproxy::config' do end context "when an array of ports is provided" do let(:params) do - { :name => 'apache', - :ports => [ + { :name => 'apache', + :listen_ip => '23.23.23.23', + :ports => [ '80', '443', ] @@ -29,7 +30,7 @@ describe 'haproxy::config' do it { should contain_concat__fragment('apache_config_block').with( 'order' => '20', 'target' => '/etc/haproxy/haproxy.cfg', - 'content' => "\nlisten apache 1.1.1.1:80,1.1.1.1:443\n balance roundrobin\n option tcplog\n option ssl-hello-chk\n" + '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" ) } end end -- cgit v1.2.3