Merge pull request #400 from duritong/fix_backupuser_dependency
Fix backupuser dependency
This commit is contained in:
commit
d5fd46de59
3 changed files with 5 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
fixtures:
|
||||
repositories:
|
||||
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib"
|
||||
"stdlib": "https://github.com/puppetlabs/puppetlabs-stdlib"
|
||||
symlinks:
|
||||
"mysql": "#{source_dir}"
|
||||
|
|
|
@ -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/*.*":
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue