Skip to content

Commit

Permalink
mysqlbackup: Reenable tests
Browse files Browse the repository at this point in the history
Previously the tests were only executed on mysql versions older than
5.7.0. This commit removes the contraint.
  • Loading branch information
bastelfreak committed Sep 20, 2024
1 parent b380c2a commit 06d9322
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/acceptance/04_mysql_backup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class { 'mysql::server::backup':
end
end

describe 'mysqlbackup.sh', if: Gem::Version.new(mysql_version) < Gem::Version.new('5.7.0') do
describe 'mysqlbackup.sh' do
it 'runs mysqlbackup.sh with no errors' do
run_shell('/usr/local/sbin/mysqlbackup.sh') do |r|
expect(r.stderr).to eq('')
Expand Down Expand Up @@ -84,6 +84,7 @@ class { 'mysql::server::backup':
backupdir => '/tmp/backups',
backupcompress => true,
file_per_database => true,
provider => 'mysqlbackup',
postscript => [
'rm -rf /var/tmp/mysqlbackups',
'rm -f /var/tmp/mysqlbackups.done',
Expand All @@ -98,7 +99,7 @@ class { 'mysql::server::backup':
end
end

describe 'mysqlbackup.sh', if: Gem::Version.new(mysql_version) < Gem::Version.new('5.7.0') do
describe 'mysqlbackup.sh' do
it 'runs mysqlbackup.sh with no errors without root credentials' do
run_shell('HOME=/tmp/dontreadrootcredentials /usr/local/sbin/mysqlbackup.sh') do |r|
expect(r.stderr).to eq('')
Expand Down

0 comments on commit 06d9322

Please sign in to comment.