Skip to content

Commit 4b2b886

Browse files
author
Sebastian Gumprich
committed
delete first control
I propose to delete this control since I don't think that it is useful: 1. it's not useful from a security perspective. Actually it would be more secure to have the database stopped. ;) 2. other tests need a running database, so these will fail anyway. there's no gain in another control that tells me that the database isnt running Signed-off-by: Sebastian Gumprich <sebastian.gumprich@t-systems.com>
1 parent 26d11ce commit 4b2b886

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

controls/mysql_conf.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,17 @@
4646
mysql_log_group = 'adm'
4747
process_name = 'mysqld'
4848
process_name = 'mariadbd' if os[:release] >= '11' && os[:name] == 'debian'
49-
service_name = 'mysql'
5049
when 'redhat', 'fedora'
5150
mysql_config_path = '/etc/'
5251
mysql_config_file = "#{mysql_config_path}my.cnf"
5352
mysql_log_group = 'mysql'
5453
process_name = 'mysqld'
5554
process_name = 'mariadbd' if os[:release] >= '9'
56-
service_name = 'mysqld'
57-
service_name = 'mariadb' if os[:release] >= '7'
5855
when 'suse'
5956
mysql_config_path = '/etc/'
6057
mysql_config_file = "#{mysql_config_path}my.cnf"
6158
mysql_log_group = 'mysql'
6259
process_name = 'mysqld'
63-
service_name = 'mariadb'
64-
end
65-
66-
control 'mysql-conf-01' do
67-
impact 0.5
68-
title 'ensure the service is enabled and running'
69-
describe service(service_name) do
70-
it { should be_enabled }
71-
it { should be_running }
72-
end
7360
end
7461

7562
# 'Check for multiple instances' do

0 commit comments

Comments
 (0)