@@ -136,7 +136,7 @@ class { 'mysql::server::backup':
136
136
end
137
137
138
138
context 'with xtrabackup enabled' do
139
- context 'should work with no errors' do
139
+ context 'should work with no errors' , if : ( ( os [ :family ] == 'debian' && os [ :release ] . to_i >= 8 ) || ( os [ :family ] == 'ubuntu' && os [ :release ] =~ %r{^16 \. 04|^18 \. 04} ) || ( os [ :family ] == 'redhat' && os [ :release ] . to_i >= 6 ) ) do # rubocop:disable Metrics/LineLength
140
140
pp = <<-MANIFEST
141
141
class { 'mysql::server': root_password => 'password' }
142
142
mysql::db { [
@@ -208,7 +208,7 @@ class { 'mysql::server::backup':
208
208
end
209
209
end
210
210
211
- describe 'xtrabackup.sh' , if : Gem ::Version . new ( mysql_version ) < Gem ::Version . new ( '5.7.0' ) do
211
+ describe 'xtrabackup.sh' , if : Gem ::Version . new ( mysql_version ) < Gem ::Version . new ( '5.7.0' ) && ( ( os [ :family ] == 'debian' && os [ :release ] . to_i >= 8 ) || ( os [ :family ] == 'ubuntu' && os [ :release ] =~ %r{^16 \. 04|^18 \. 04} ) || ( os [ :family ] == 'redhat' && os [ :release ] . to_i >= 6 ) ) do # rubocop:disable Metrics/LineLength
212
212
before ( :all ) do
213
213
pre_run
214
214
end
@@ -258,7 +258,7 @@ class { 'mysql::server::backup':
258
258
end
259
259
260
260
context 'with xtrabackup enabled and incremental backups disabled' do
261
- context 'should work with no errors' do
261
+ context 'should work with no errors' , if : ( ( os [ :family ] == 'debian' && os [ :release ] . to_i >= 8 ) || ( os [ :family ] == 'ubuntu' && os [ :release ] =~ %r{^16 \. 04|^18 \. 04} ) || ( os [ :family ] == 'redhat' && os [ :release ] . to_i >= 6 ) ) do # rubocop:disable Metrics/LineLength
262
262
pp = <<-MANIFEST
263
263
class { 'mysql::server': root_password => 'password' }
264
264
mysql::db { [
@@ -331,7 +331,7 @@ class { 'mysql::server::backup':
331
331
end
332
332
end
333
333
334
- describe 'xtrabackup.sh' , if : Gem ::Version . new ( mysql_version ) < Gem ::Version . new ( '5.7.0' ) do
334
+ describe 'xtrabackup.sh' , if : Gem ::Version . new ( mysql_version ) < Gem ::Version . new ( '5.7.0' ) && ( ( os [ :family ] == 'debian' && os [ :release ] . to_i >= 8 ) || ( os [ :family ] == 'ubuntu' && os [ :release ] =~ %r{^16 \. 04|^18 \. 04} ) || ( os [ :family ] == 'redhat' && os [ :release ] . to_i >= 6 ) ) do # rubocop:disable Metrics/LineLength
335
335
before ( :all ) do
336
336
pre_run
337
337
end
0 commit comments