File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed
test/integration/default/controls Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
control 'Php configuration' do
2
4
title 'should match desired lines'
3
5
6
+ # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
4
7
def test_debian
5
8
describe file ( '/etc/php/5.6/fpm/pool.d/radius-admin.conf' ) do
6
9
its ( 'content' ) { should include '[radius-admin]' }
@@ -20,12 +23,11 @@ def test_debian
20
23
its ( 'content' ) { should include 'date.timezone = Europe/Paris' }
21
24
end
22
25
end
26
+ # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
23
27
24
- def test_redhat
25
- end
28
+ def test_redhat ; end
26
29
27
- def test_suse
28
- end
30
+ def test_suse ; end
29
31
30
32
case os [ :family ]
31
33
when 'debian'
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
control 'Php package' do
2
4
title 'should be installed'
3
5
6
+ # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
4
7
def test_debian
5
8
describe package ( 'php-imagick' ) do
6
9
it { should be_installed }
@@ -18,7 +21,6 @@ def test_debian
18
21
bz2 cli curl fpm gd imap intl mbstring
19
22
mysql readline xml zip
20
23
] . each do |pkg |
21
-
22
24
describe package ( "php5.6-#{ pkg } " ) do
23
25
it { should be_installed }
24
26
end
@@ -28,6 +30,7 @@ def test_debian
28
30
end
29
31
end
30
32
end
33
+ # rubocop:enable Metrics/MethodLength, Metrics/AbcSize
31
34
32
35
def test_redhat
33
36
describe package ( 'php' ) do
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
control 'Php service' do
2
4
title 'should be running and enabled'
3
5
@@ -13,11 +15,9 @@ def test_debian
13
15
end
14
16
end
15
17
16
- def test_redhat
17
- end
18
+ def test_redhat ; end
18
19
19
- def test_suse
20
- end
20
+ def test_suse ; end
21
21
22
22
case os [ :family ]
23
23
when 'debian'
You can’t perform that action at this time.
0 commit comments