mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

The main part of this commit are changes in tests. A lot of the tests that previously relied on analyzer.log or dpd.log now use the new analyzer-failed.log. I verified all the changes and, as far as I can tell, everything behaves as it should. This includes the external test baselines. This change also enables logging of file and packet analyzer to analyzer_failed.log and fixes some small behavior issues. The analyzer_failed event is no longer raised when the removal of an analyzer is vetoed. If an analyzer is no longer active when an analyzer violation is raised, currently the analyzer_failed event is raised. This can, e.g., happen when an analyzer error happens at the very end of the connection. This makes the behavior more similar to what happened in the past, and also intuitively seems to make sense. A bug introduced in the failed service logging was fixed.
30 lines
1 KiB
Text
30 lines
1 KiB
Text
# Sets some testing specific options.
|
|
|
|
@load external-ca-list
|
|
@load external-ct-list
|
|
|
|
@load protocols/conn/failed-service-logging
|
|
redef DPD::track_removed_services_in_connection=T;
|
|
|
|
@ifdef ( SMTP::never_calc_md5 )
|
|
# MDD5s can depend on libmagic output.
|
|
redef SMTP::never_calc_md5 = T;
|
|
@endif
|
|
|
|
@ifdef ( LogAscii::use_json )
|
|
# Don't start logging everything as JSON.
|
|
# (json-logs.zeek activates this).
|
|
redef LogAscii::use_json = F;
|
|
@endif
|
|
|
|
# The tests don't load intel data and so all Intel event groups are disabled
|
|
# due to intel/seen/manage-event-groups being loaded by default. Disable that
|
|
# functionality by default to cover execution in the intel/seen scripts.
|
|
redef Intel::manage_seen_event_groups = F;
|
|
|
|
# The IMAP analyzer includes absolute filenames in its error messages,
|
|
# exclude it for now from analyzer.log.
|
|
# https://github.com/zeek/zeek/issues/2659
|
|
redef Analyzer::DebugLogging::ignore_analyzers += { Analyzer::ANALYZER_IMAP };
|
|
redef Analyzer::DebugLogging::include_confirmations = F;
|
|
redef Analyzer::DebugLogging::include_disabling = F;
|