mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00

- core.load-unload: scripts that get loaded by default changed, so to make the test insensitive to that in the future, I changed the test to just check that the stdout is empty (the @unload'd script would have had output there) - policy.frameworks.logging.rotate-custom: I saw that the ordering of the log postprocessor output caused a failure for me even though the overall content was the same, so it now sorts that part before diff'ing - core.print-bpf-filters-ipv[4|6]: packet-filter log file name changed - policy.protocols.conn.known-services: logging file names changes and local_nets is now in the Site module
21 lines
862 B
Text
21 lines
862 B
Text
# A basic test of the known-hosts script's logging and asset_tracking options
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT KnownHosts::asset_tracking=LOCAL_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-local.log
|
|
# @TEST-EXEC: btest-diff knownhosts-local.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT KnownHosts::asset_tracking=REMOTE_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-remote.log
|
|
# @TEST-EXEC: btest-diff knownhosts-remote.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT KnownHosts::asset_tracking=ALL_HOSTS
|
|
# @TEST-EXEC: mv known_hosts.log knownhosts-all.log
|
|
# @TEST-EXEC: btest-diff knownhosts-all.log
|
|
|
|
# @TEST-EXEC: bro -r $TRACES/wikipedia.trace %INPUT KnownHosts::asset_tracking=NO_HOSTS
|
|
# @TEST-EXEC: test '!' -e known_hosts.log
|
|
|
|
@load conn/known-hosts
|
|
@load site
|
|
|
|
redef Site::local_nets += {141.142.0.0/16};
|