Sha256: cc2a1006b828a0b5bede8488f7c5b34268d21ba7f8d14d7ad2f8f24d1896e966

Contents?: true

Size: 774 Bytes

Versions: 14

Compression:

Stored size: 774 Bytes

Contents

require 'spec_helper'
describe 'mysql::server::monitor' do
  let :facts do
    { :osfamily => 'Debian', :root_home => '/root' }
  end
  let :pre_condition do
    "include 'mysql::server'"
  end

  let :default_params do
    {
      :mysql_monitor_username   => 'monitoruser',
      :mysql_monitor_password   => 'monitorpass',
      :mysql_monitor_hostname   => 'monitorhost',
    }
  end

  let :params do
    default_params
  end

  it { should contain_mysql_user('monitoruser@monitorhost')}

  it { should contain_mysql_grant('monitoruser@monitorhost/*.*').with(
    :ensure     => 'present',
    :user       => 'monitoruser@monitorhost',
    :table      => '*.*',
    :privileges => ["PROCESS", "SUPER"],
    :require    => 'Mysql_user[monitoruser@monitorhost]'
  )}
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.6.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.5.2 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.5.1 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.5.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.4.1 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.4.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.3.3 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.3.2 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.3.1 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.3.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.2.1 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.2.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb
freighthop-0.1.0 modules/mysql/spec/classes/mysql_server_monitor_spec.rb