Skip to content

Commit

Permalink
fix tests, fixes #138
Browse files Browse the repository at this point in the history
  • Loading branch information
luxflux committed Mar 5, 2015
1 parent 1de0f34 commit edf8931
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/defines/openvpn_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(%r{^duplicate-cn$}) }
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(/^ns-cert-type server/) }
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(%r{^tls-auth}) }
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(%r{^fragment}) }

end

Expand Down Expand Up @@ -197,6 +198,8 @@
it { should contain_file('/etc/openvpn/test_server.conf').with_content(%r{^tls-server$}) }
it { should contain_file('/etc/openvpn/test_server.conf').with_content(%r{^tls-auth\s+/etc/openvpn/test_server/keys/ta.key\s+0$}) }

it { should contain_file('/etc/openvpn/test_server.conf').with_content(%r{^fragment 1412$}) }

it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(/^server-poll-timeout/) }
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(/^ping-timer-rem/) }
it { should_not contain_file('/etc/openvpn/test_server.conf').with_content(/^sndbuf/) }
Expand Down Expand Up @@ -239,7 +242,6 @@
:operatingsystem => 'Ubuntu',
:operatingsystemrelease => '12.04',
} }
it { should contain_file('/etc/openvpn/test_server.conf').with_content(%r{^fragment 1412$}) }
it { should contain_file('/etc/openvpn/test_client.conf').with_content(/^client$/) }
it { should contain_file('/etc/openvpn/test_client.conf').
with_content(/^remote\s+vpn.example.com\s+12345$/) }
Expand Down

0 comments on commit edf8931

Please sign in to comment.