File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5151 it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^iroute 10.0.1.0 255.255.255.0$} ) }
5252 it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^iroute-ipv6 2001:db8:1234::/64$} ) }
5353 it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^ifconfig-push 10.10.10.2 255.255.255.0$} ) }
54- it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^push dhcp-option DNS 8.8.8.8$} ) }
55- it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^push redirect-gateway def1$} ) }
54+ it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^push " dhcp-option DNS 8.8.8.8" $} ) }
55+ it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^push " redirect-gateway def1" $} ) }
5656 it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^push "route 10.200.100.0 255.255.255.0 10.10.10.1"$} ) }
5757 end
5858 end
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ iroute-ipv6 <%= iroute_ipv6 %>
88ifconfig-push <%= ifconfig %>
99<% end -%>
1010<% @dhcp_options.each do |option| -%>
11- push dhcp-option <%= option %>
11+ push " dhcp-option <%= option %> "
1212<% end -%>
1313<% if @redirect_gateway -%>
14- push redirect-gateway def1
14+ push " redirect-gateway def1"
1515<% end -%>
1616<% @route.each do |route| -%>
1717push "route <%= route %> "
You can’t perform that action at this time.
0 commit comments