File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
if $mysql::server::manage_config_file {
13
13
$install_db_args = " --basedir=${basedir} --defaults-extra-file=${config_file} --datadir=${datadir} --user=${mysqluser} "
14
-
14
+ } else {
15
+ $install_db_args = " --basedir=${basedir} --datadir=${datadir} --user=${mysqluser} "
15
16
}
16
17
17
18
exec { 'mysql_install_db' :
Original file line number Diff line number Diff line change 19
19
it { is_expected . to contain_class ( 'mysql::server::account_security' ) }
20
20
end
21
21
22
+ context 'when not managing config file' do
23
+ let ( :params ) { { :manage_config_file => false } }
24
+ it { is_expected . to compile . with_all_deps }
25
+ end
26
+
22
27
context 'mysql::server::install' do
23
28
it 'contains the package by default' do
24
29
is_expected . to contain_package ( 'mysql-server' ) . with ( {
You can’t perform that action at this time.
0 commit comments