File tree 3 files changed +5
-2
lines changed
3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 32
32
Optional[String[1]] $compression_command = undef ,
33
33
Optional[String[1]] $compression_extension = undef ,
34
34
Optional[String[1]] $backupmethod_package = undef ,
35
+ Array $excludedatabases = [], # unused, compatibility variable for mysql::server::backup class
35
36
) inherits mysql::params {
36
37
$backuppassword_unsensitive = if $backuppassword =~ Sensitive {
37
38
$backuppassword .unwrap
Original file line number Diff line number Diff line change 86
86
# The package which provides the binary specified by the backupmethod parameter.
87
87
# @param excludedatabases
88
88
# Give a list of excluded databases when using file_per_database, e.g.: [ 'information_schema', 'performance_schema' ]
89
+ # Only used for the mysqldump and xtrabackup providers
89
90
class mysql::server::backup (
90
91
Optional[String[1]] $backupuser = undef ,
91
92
Optional[Variant[String, Sensitive[String]]] $backuppassword = undef ,
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class { 'mysql::server::backup':
35
35
end
36
36
end
37
37
38
- describe 'mysqlbackup.sh' , if : Gem :: Version . new ( mysql_version ) < Gem :: Version . new ( '5.7.0' ) do
38
+ describe 'mysqlbackup.sh' do
39
39
it 'runs mysqlbackup.sh with no errors' do
40
40
run_shell ( '/usr/local/sbin/mysqlbackup.sh' ) do |r |
41
41
expect ( r . stderr ) . to eq ( '' )
@@ -84,6 +84,7 @@ class { 'mysql::server::backup':
84
84
backupdir => '/tmp/backups',
85
85
backupcompress => true,
86
86
file_per_database => true,
87
+ provider => 'mysqlbackup',
87
88
postscript => [
88
89
'rm -rf /var/tmp/mysqlbackups',
89
90
'rm -f /var/tmp/mysqlbackups.done',
@@ -98,7 +99,7 @@ class { 'mysql::server::backup':
98
99
end
99
100
end
100
101
101
- describe 'mysqlbackup.sh' , if : Gem :: Version . new ( mysql_version ) < Gem :: Version . new ( '5.7.0' ) do
102
+ describe 'mysqlbackup.sh' do
102
103
it 'runs mysqlbackup.sh with no errors without root credentials' do
103
104
run_shell ( 'HOME=/tmp/dontreadrootcredentials /usr/local/sbin/mysqlbackup.sh' ) do |r |
104
105
expect ( r . stderr ) . to eq ( '' )
You can’t perform that action at this time.
0 commit comments