module-icingaweb2/spec/classes/icingaweb2_mod_monitoring_spec.rb

45 lines
1.1 KiB
Ruby
Raw Normal View History

2016-01-05 14:39:13 +01:00
require 'spec_helper'
describe 'icingaweb2::mod::monitoring', :type => :class do
let (:pre_condition) { '$concat_basedir = "/tmp"' }
let (:facts) { debian_facts }
let :pre_condition do
'include ::icingaweb2'
end
describe 'without parameters' do
it { should contain_ini_setting('security settings').with(
'section' => /security/,
'setting' => /protected_customvars/,
'value' => /community/,
'path' => /config.ini/
)
}
it { should contain_ini_setting('backend ido setting').with(
'section' => /icinga_ido/,
'setting' => /type/,
'value' => /ido/,
'path' => /backends.ini/
)
}
it { should contain_ini_setting('backend resource setting').with(
'section' => /icinga_ido/,
'setting' => /resource/,
'value' => /icinga_ido/,
'path' => /backends.ini/
)
}
it { should contain_ini_setting('command transport setting').with(
'section' => /icinga2/,
'setting' => /transport/,
'value' => /local/,
'path' => /commandtransports.ini/
)
}
end
end