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 5
5
control 'OpenVPN server configuration' do
6
6
title 'should match desired lines'
7
7
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
12
15
13
16
describe file ( cfgfile ) do
14
17
it { should be_file }
28
31
control 'OpenVPN client configuration' do
29
32
title 'should match desired lines'
30
33
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
35
41
36
42
describe file ( cfgfile ) do
37
43
it { should be_file }
Original file line number Diff line number Diff line change 13
13
else
14
14
%w( server client ) . each do |role |
15
15
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
20
23
21
24
describe service ( "#{ prefix } @my#{ role } 1.service" ) do
22
25
it { should be_enabled }
You can’t perform that action at this time.
0 commit comments