Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #62 from fcharlier/syntax_error_monitor
Fix typos in mysql::server::monitor class
  • Loading branch information
bodepd committed Apr 24, 2012
2 parents 12a4410 + 64f367f commit 779affe
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/server/monitor.pp
Expand Up @@ -4,7 +4,7 @@
$mysql_monitor_hostname
) {

class ['mysql::server'] -> class['mysql::monitor']
Class['mysql::server'] -> Class['mysql::server::monitor']

database_user{ "${mysql_monitor_username}@${mysql_monitor_hostname}":
password_hash => mysql_password($mysql_monitor_password),
Expand Down
18 changes: 18 additions & 0 deletions spec/classes/mysql_server_monitor_spec.rb
@@ -0,0 +1,18 @@
require 'spec_helper'
describe 'mysql::server::monitor' do
let :facts do
{ :osfamily => 'Debian' }
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

it { should contain_database_user("monitoruser@monitorhost")}
end

0 comments on commit 779affe

Please sign in to comment.