diff options
author | Raffael Schmid <raffael@yux.ch> | 2013-01-19 12:35:06 +0100 |
---|---|---|
committer | Raffael Schmid <raffael@yux.ch> | 2013-01-19 12:35:06 +0100 |
commit | e7eb9f46ffebda3b78f1c6922f798d5f65a6598c (patch) | |
tree | ebc0e0bbc5c8255120695d6a58e0ce852c4120b4 | |
parent | eda93d495e6f33e0c9ea4d325b709d00ce919b60 (diff) |
add test for client-config-dir
-rw-r--r-- | spec/defines/openvpn_server_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |