2012-04-24 11:56:01 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
describe 'mysql::server::monitor' do
|
|
|
|
let :facts do
|
2013-07-08 11:49:30 +02:00
|
|
|
{ :osfamily => 'Debian', :root_home => '/root' }
|
2012-04-24 11:56:01 +02:00
|
|
|
end
|
|
|
|
let :pre_condition do
|
|
|
|
"include 'mysql::server'"
|
|
|
|
end
|
|
|
|
let :params do
|
|
|
|
{
|
|
|
|
:mysql_monitor_username => 'monitoruser',
|
|
|
|
:mysql_monitor_password => 'monitorpass',
|
|
|
|
:mysql_monitor_hostname => 'monitorhost'
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2013-07-10 05:11:11 +02:00
|
|
|
it { should contain_database_user('monitoruser@monitorhost')}
|
2012-04-24 11:56:01 +02:00
|
|
|
end
|