def test_logging_errors
@properties['logfiles'] = [
{ 'path' => 'detarame/server.log',
'log_emerg' => true,
'log_alert' => true,
'log_crit' => true,
'log_err' => true,
'log_warning' => true,
'log_notice' => true,
'log_info' => false,
'log_debug' => false
}
]
build_control
@control.server_setup(self)
assert_equal(1, @add_logger_call)
assert_equal(1, @control.logging_errors.length)
assert_equal('detarame/server.log', @control.logging_errors[0][:logfile])
assert_instance_of(Errno::ENOENT, @control.logging_errors[0][:exception])
end