Skip to content

Commit 84fc716

Browse files
author
Ashley Penney
committed
Merge pull request #454 from apenney/pe-test-fails
Fixes for Ubuntu/Debian.
2 parents 34b8ebf + 5eb6e70 commit 84fc716

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

spec/acceptance/mysql_bindings_spec.rb

+1
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class { 'mysql::bindings': }
6464
class { 'mysql::bindings':
6565
java_enable => true,
6666
perl_enable => true,
67+
php_enable => true,
6768
python_enable => true,
6869
ruby_enable => true,
6970
java_package_ensure => present,

spec/acceptance/mysql_server_config_spec.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ class { 'mysql::server':
2424
}
2525
EOS
2626
# Make sure this doesn't exist so we can test if puppet
27-
# readded it
28-
shell('rm /etc/my.cnf')
27+
# readded it. It may not exist in the first place on
28+
# some platforms.
29+
shell('rm /etc/my.cnf', :acceptable_exit_codes => [0,1,2])
2930
apply_manifest(pp, :catch_failures => true)
3031
end
3132

spec/acceptance/mysql_server_spec.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,13 @@ class { 'mysql::server':
191191
pp = <<-EOS
192192
class { 'mysql::server':
193193
root_group => 'test',
194+
config_file => '/tmp/mysql_group_test',
194195
}
195196
EOS
196197
apply_manifest(pp, :catch_failures => true)
197198
end
198199

199-
describe file('/etc/my.cnf') do
200+
describe file('/tmp/mysql_group_test') do
200201
it { should be_grouped_into 'test' }
201202
end
202203
end

0 commit comments

Comments
 (0)