diff options
author | Justin Lambert <jlambert@eml.cc> | 2013-01-14 09:30:24 -0700 |
---|---|---|
committer | Justin Lambert <jlambert@eml.cc> | 2013-01-14 09:30:24 -0700 |
commit | 3a81ce3cdaf9eaaad5c38cc2c56051785b84bd09 (patch) | |
tree | c3624ffed50c09e1d56d8ad976cc1f7dbd372039 /spec/defines/openvpn_client_spec.rb | |
parent | 2dce9ca4c11ffeb43aaafe7551d3fa098fad75c4 (diff) |
added ifconfig-push and iroute options to openvpn::client
Diffstat (limited to 'spec/defines/openvpn_client_spec.rb')
-rw-r--r-- | spec/defines/openvpn_client_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/defines/openvpn_client_spec.rb b/spec/defines/openvpn_client_spec.rb index a4b580e..438b3ca 100644 --- a/spec/defines/openvpn_client_spec.rb +++ b/spec/defines/openvpn_client_spec.rb @@ -59,6 +59,8 @@ describe 'openvpn::client', :type => :define do 'server' => 'test_server', 'compression' => 'comp-something', 'dev' => 'tap', + 'ifconfig_push' => '10.10.9.1 255.255.255.0', + 'iroute' => [ '10.10.10.0 255.255.255.0', '10.10.11.0 255.255.255.0' ], 'mute' => 10, 'mute_replay_warnings' => false, 'nobind' => false, @@ -83,6 +85,9 @@ describe 'openvpn::client', :type => :define do it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^resolv-retry\s+2m$/)} it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^verb\s+1$/)} it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^mute\s+10$/)} + it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^iroute\s+10\.10\.10\.0\s+255\.255\.255\.0$/)} + it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^iroute\s+10\.10\.11\.0\s+255\.255\.255\.0$/)} + it { should contain_file('/etc/openvpn/test_server/download-configs/test_client/test_client.conf').with_content(/^ifconfig-push\s+10\.10\.9\.1\s+255\.255\.255\.0$/)} end end |