File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 51
51
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$} ) }
52
52
it { is_expected . to contain_file ( '/etc/openvpn/test_server/client-configs/test_client' ) . with_content ( %r{^iroute-ipv6 2001:db8:1234::/64$} ) }
53
53
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" $} ) }
56
56
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"$} ) }
57
57
end
58
58
end
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ iroute-ipv6 <%= iroute_ipv6 %>
8
8
ifconfig-push <%= ifconfig %>
9
9
<% end -%>
10
10
<% @dhcp_options.each do |option| -%>
11
- push dhcp-option <%= option %>
11
+ push " dhcp-option <%= option %> "
12
12
<% end -%>
13
13
<% if @redirect_gateway -%>
14
- push redirect-gateway def1
14
+ push " redirect-gateway def1"
15
15
<% end -%>
16
16
<% @route.each do |route| -%>
17
17
push "route <%= route %> "
You can’t perform that action at this time.
0 commit comments