File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 38
38
path => $mysql::server::config_file ,
39
39
content => template (' mysql/my.cnf.erb' ),
40
40
mode => $mysql::server::config_file_mode ,
41
+ group => $mysql::server::mysql_group ,
41
42
selinux_ignore_defaults => true ,
42
43
}
43
44
Original file line number Diff line number Diff line change 128
128
is_expected . to contain_file ( 'mysql-config-file' ) . with ( mode : '0600' )
129
129
end
130
130
end
131
+
132
+ context 'owner group mysql' do
133
+ let ( :params ) { { 'mysql_group' => 'mysql' } }
134
+
135
+ it do
136
+ is_expected . to contain_file ( 'mysql-config-file' ) . with ( group : 'mysql' )
137
+ end
138
+ end
139
+
140
+ context 'owner group root' do
141
+ let ( :params ) { { 'mysql_group' => 'root' } }
142
+
143
+ it do
144
+ is_expected . to contain_file ( 'mysql-config-file' ) . with ( group : 'root' )
145
+ end
146
+ end
131
147
end
132
148
end
133
149
end
You can’t perform that action at this time.
0 commit comments