Merge pull request #400 from duritong/fix_backupuser_dependency

Fix backupuser dependency
This commit is contained in:
Igor Galić 2013-12-18 22:13:27 -08:00
commit d5fd46de59
3 changed files with 5 additions and 3 deletions

View file

@ -1,5 +1,5 @@
fixtures:
repositories:
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib"
"stdlib": "https://github.com/puppetlabs/puppetlabs-stdlib"
symlinks:
"mysql": "#{source_dir}"

View file

@ -19,7 +19,7 @@ class mysql::server::backup (
ensure => $ensure,
password_hash => mysql_password($backuppassword),
provider => 'mysql',
require => Class['mysql::server::config'],
require => Class['mysql::server::root_password'],
}
mysql_grant { "${backupuser}@localhost/*.*":

View file

@ -13,7 +13,9 @@ describe 'mysql::server::backup' do
context 'standard conditions' do
let(:params) { default_params }
it { should contain_mysql_user('testuser@localhost')}
it { should contain_mysql_user('testuser@localhost').with(
:require => 'Class[Mysql::Server::Root_password]'
)}
it { should contain_mysql_grant('testuser@localhost/*.*').with(
:privileges => ["SELECT", "RELOAD", "LOCK TABLES", "SHOW VIEW"]