From e7eb9f46ffebda3b78f1c6922f798d5f65a6598c Mon Sep 17 00:00:00 2001 From: Raffael Schmid Date: Sat, 19 Jan 2013 12:35:06 +0100 Subject: add test for client-config-dir --- spec/defines/openvpn_server_spec.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'spec/defines') diff --git a/spec/defines/openvpn_server_spec.rb b/spec/defines/openvpn_server_spec.rb index f9c4780..3981f62 100644 --- a/spec/defines/openvpn_server_spec.rb +++ b/spec/defines/openvpn_server_spec.rb @@ -103,6 +103,7 @@ describe 'openvpn::server', :type => :define do it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^server\s+2\.3\.4\.0\s+255\.255\.0\.0$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^push\s+dhcp-option\s+DNS\s+172\.31\.0\.30$/) } it { should contain_file('/etc/openvpn/test_server.conf').with_content(/^push\s+route\s+172\.31\.0\.0\s+255\.255\.0\.0$/) } + it { should contain_file('/etc/openvpn/test_server.conf').with_content(%r{^client-config-dir /etc/openvpnv/test_server/client-configs$}) } end context "when RedHat based machine" do -- cgit v1.2.3