Skip to content

Commit c69144f

Browse files
committed
(MODULES-10790) - Add test to highlight failure
1 parent 3288a87 commit c69144f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

spec/acceptance/mysql_server_spec.rb

+22
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,28 @@ class { 'mysql::server':
4646
it 'behaves idempotently' do
4747
idempotent_apply(pp)
4848
end
49+
50+
describe 'override_options' do
51+
let(:pp) do
52+
<<-MANIFEST
53+
class { '::mysql::server':
54+
root_password => 'strongpassword',
55+
remove_default_accounts => true,
56+
restart => true,
57+
override_options => {
58+
'mysqld' => {
59+
'log-bin' => '/var/log/mariadb/mariadb-bin.log',}
60+
}
61+
}
62+
MANIFEST
63+
end
64+
65+
it 'can be set' do
66+
apply_manifest(pp, catch_failures: true) do |r|
67+
expect(r.stderr).to be_empty
68+
end
69+
end
70+
end
4971
end
5072

5173
describe 'syslog configuration' do

0 commit comments

Comments
 (0)