module-puppetlabs-mysql/spec/classes/mysql_server_spec.rb
François Charlier b14c7d14d2 Add a test to check path for 'mysqld-restart'
And fix a coma error in mysql::config class.

Signed-off-by: François Charlier <fcharlier@ploup.net>
2012-03-16 18:13:16 +01:00

22 lines
585 B
Ruby

require 'spec_helper'
describe 'mysql::server' do
let (:facts) do
{ :osfamily => 'Debian' }
end
it { should contain_package('mysql-server').with_ensure('present') }
it do should contain_service('mysqld').with(
'name' => 'mysql',
'ensure' => 'running',
'enable' => 'true'
) end
it { should contain_class 'mysql::config' }
it do should contain_exec('mysqld-restart').with(
'command' => 'service mysql restart',
'logoutput' => 'on_failure',
'path' => '/sbin/:/usr/sbin/:/usr/bin/:/bin/',
'refreshonly' => 'true'
) end
end