diff options
author | Zack Smith <acidprime@wallcity.org> | 2012-10-10 17:23:31 -0700 |
---|---|---|
committer | Zack Smith <acidprime@wallcity.org> | 2012-10-10 17:23:31 -0700 |
commit | f96656440027fbfc73bccf1911c817d7e4392713 (patch) | |
tree | 3bf833bcadad39e79d11b49f4cf122d00d5f7e59 /spec/defines/config_spec.rb | |
parent | 2ecc40a69636000adcdf385a3f1991d36d695b9c (diff) | |
parent | b7c098f89d124946bbadb9002e423eac0ff736b1 (diff) |
Merge pull request #12 from hunner/rename_listen_ip
Change `virtual_ip` to `listen_ip`
Diffstat (limited to 'spec/defines/config_spec.rb')
-rw-r--r-- | spec/defines/config_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 |