From 3ab65f56a61cfedbe75a3b41143f0d44fbad0a93 Mon Sep 17 00:00:00 2001 From: Hunter Haugen Date: Fri, 12 Oct 2012 11:28:24 -0700 Subject: Rename everything! What is renamed: - Class/define: - haproxy::config to haproxy::listen - haproxy::data to haproxy::params - Parameters: - haproxy::listen listen_ip to ipaddress - haproxy::listen config_options to options - haproxy haproxy_global_options to global_options - haproxy haproxy_defaults_options to defaults_options --- spec/defines/config_spec.rb | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 spec/defines/config_spec.rb (limited to 'spec/defines/config_spec.rb') diff --git a/spec/defines/config_spec.rb b/spec/defines/config_spec.rb deleted file mode 100644 index 6a1af44..0000000 --- a/spec/defines/config_spec.rb +++ /dev/null @@ -1,36 +0,0 @@ -require 'spec_helper' - -describe 'haproxy::config' do - let(:title) { 'tyler' } - let(:facts) {{ :ipaddress => '1.1.1.1' }} - context "when only one port is provided" do - let(:params) do - { :name => 'croy', - :ports => '18140' - } - end - - it { should contain_concat__fragment('croy_config_block').with( - 'order' => '20', - '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" - ) } - end - context "when an array of ports is provided" do - let(:params) do - { :name => 'apache', - :listen_ip => '23.23.23.23', - :ports => [ - '80', - '443', - ] - } - end - - it { should contain_concat__fragment('apache_config_block').with( - 'order' => '20', - '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" - ) } - end -end -- cgit v1.2.3