Skip to content

Commit 4cc5ff5

Browse files
committed
mysqlbackup: Reenable tests
Previously the tests were only executed on mysql versions older than 5.7.0. This commit removes the contraint.
1 parent e11ed5b commit 4cc5ff5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spec/acceptance/04_mysql_backup_spec.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class { 'mysql::server::backup':
3535
end
3636
end
3737

38-
describe 'mysqlbackup.sh', if: Gem::Version.new(mysql_version) < Gem::Version.new('5.7.0') do
38+
describe 'mysqlbackup.sh' do
3939
it 'runs mysqlbackup.sh with no errors' do
4040
run_shell('/usr/local/sbin/mysqlbackup.sh') do |r|
4141
expect(r.stderr).to eq('')
@@ -84,6 +84,7 @@ class { 'mysql::server::backup':
8484
backupdir => '/tmp/backups',
8585
backupcompress => true,
8686
file_per_database => true,
87+
provider => 'mysqlbackup',
8788
postscript => [
8889
'rm -rf /var/tmp/mysqlbackups',
8990
'rm -f /var/tmp/mysqlbackups.done',
@@ -98,7 +99,7 @@ class { 'mysql::server::backup':
9899
end
99100
end
100101

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

0 commit comments

Comments
 (0)