45 lines
1.1 KiB
Ruby
45 lines
1.1 KiB
Ruby
|
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
|