backup script test: Actually loop through a list

we do this by creating more than one database to backup.
This commit is contained in:
Igor Galić 2014-03-02 13:30:30 +01:00
parent 7884ff744e
commit 53af16e601

View file

@ -5,7 +5,10 @@ describe 'mysql::server::backup class', :unless => UNSUPPORTED_PLATFORMS.include
it 'when configuring mysql backups' do
pp = <<-EOS
class { 'mysql::server': root_password => 'password' }
mysql::db { 'backup1':
mysql::db { [
'backup1',
'backup2'
]:
user => 'backup',
password => 'secret',
}