File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed
test/integration/default/controls Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 55control 'OpenVPN server configuration' do
66 title 'should match desired lines'
77
8- cfgfile = case os [ :name ]
9- when 'fedora' then '/etc/openvpn/server/myserver1.conf'
10- else '/etc/openvpn/myserver1.conf'
11- end
8+ cfgfile =
9+ case os [ :name ]
10+ when 'fedora' then
11+ '/etc/openvpn/server/myserver1.conf'
12+ else
13+ '/etc/openvpn/myserver1.conf'
14+ end
1215
1316 describe file ( cfgfile ) do
1417 it { should be_file }
2831control 'OpenVPN client configuration' do
2932 title 'should match desired lines'
3033
31- cfgfile = case os [ :name ]
32- when 'fedora' then '/etc/openvpn/client/myclient1.conf'
33- else '/etc/openvpn/myclient1.conf'
34- end
34+ cfgfile =
35+ case os [ :name ]
36+ when 'fedora' then
37+ '/etc/openvpn/client/myclient1.conf'
38+ else
39+ '/etc/openvpn/myclient1.conf'
40+ end
3541
3642 describe file ( cfgfile ) do
3743 it { should be_file }
Original file line number Diff line number Diff line change 1313 else
1414 %w( server client ) . each do |role |
1515
16- prefix = case os [ :name ]
17- when 'fedora' then "openvpn-#{ role } "
18- else 'openvpn'
19- end
16+ prefix =
17+ case os [ :name ]
18+ when 'fedora' then
19+ "openvpn-#{ role } "
20+ else
21+ 'openvpn'
22+ end
2023
2124 describe service ( "#{ prefix } @my#{ role } 1.service" ) do
2225 it { should be_enabled }
You can’t perform that action at this time.
0 commit comments