Skip to content

Commit

Permalink
Use Debian as osfamily instead of RedHat.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzed committed Jun 19, 2015
1 parent e3a221c commit 2ed9e84
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions spec/classes/collectd_plugin_processes_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,16 @@

describe 'collectd::plugin::processes', :type => :class do
let :facts do
{:osfamily => 'RedHat'}
{
:osfamily => 'Debian',
:concat_basedir => tmpfilename('collectd-processes'),
:id => 'root',
:kernel => 'Linux',
:path => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin',
:collectd_version => '5.0'
}
end

context ':ensure => present' do
context ':ensure => present and default parameters' do

Expand All @@ -17,7 +25,7 @@

it 'Will create /etc/collectd.d/conf.d/processes-config.conf' do
should contain_concat__fragment('collectd_plugin_processes_conf_header').with({
:content => /<Plugin "processes">/,
:content => /<Plugin processes>/,
:target => '/etc/collectd/conf.d/processes-config.conf',
:order => '00'
})
Expand Down

0 comments on commit 2ed9e84

Please sign in to comment.