mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

In the past, we used a default canonifier, which removes everything that looks like a timestamp from log files. The goal of this is to prevent logs from changing, e.g., due to local system times ending up in log files. This, however, also has the side-effect of removing information that is parsed from protocols which probably should be part of our tests. There is at least one test (1999 certificates) where the entire test output was essentially removed by the canonifier. GH-4521 was similarly masked by this. This commit changes the default canonifier, so that only the first timestamp in a line is removed. This should skip timestamps that are likely to change while keeping timestamps that are parsed from protocol information. A pass has been made over the tests, with some additional adjustments for cases which require the old canonifier. There are some cases in which we probably could go further and not remove timestamps at all - that, however, seems like a follow-up project.
25 lines
1.2 KiB
Text
25 lines
1.2 KiB
Text
### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63.
|
|
#separator \x09
|
|
#set_separator ,
|
|
#empty_field (empty)
|
|
#unset_field -
|
|
#path config
|
|
#open XXXX-XX-XX-XX-XX-XX
|
|
#fields ts id old_value new_value location
|
|
#types time string string string string
|
|
XXXXXXXXXX.XXXXXX testbool T F ../configfile
|
|
XXXXXXXXXX.XXXXXX testcount 0 1 ../configfile
|
|
XXXXXXXXXX.XXXXXX testcount 1 2 ../configfile
|
|
XXXXXXXXXX.XXXXXX testint 0 -1 ../configfile
|
|
XXXXXXXXXX.XXXXXX testenum SSH::LOG Conn::LOG ../configfile
|
|
XXXXXXXXXX.XXXXXX testport 42/tcp 45/unknown ../configfile
|
|
XXXXXXXXXX.XXXXXX testaddr 127.0.0.1 127.0.0.1 ../configfile
|
|
XXXXXXXXXX.XXXXXX testaddr 127.0.0.1 2607:f8b0:4005:801::200e ../configfile
|
|
XXXXXXXXXX.XXXXXX testinterval 1.0 sec 1.0 min ../configfile
|
|
XXXXXXXXXX.XXXXXX teststring a abc ../configfile
|
|
XXXXXXXXXX.XXXXXX testtime 0.0 1507321987.0 ../configfile
|
|
XXXXXXXXXX.XXXXXX test_set (empty) a,d,b,c,erdbeerschnitzel ../configfile
|
|
XXXXXXXXXX.XXXXXX test_vector (empty) 1,2,3,4,5,6 ../configfile
|
|
XXXXXXXXXX.XXXXXX test_set a,d,b,c,erdbeerschnitzel (empty) ../configfile
|
|
XXXXXXXXXX.XXXXXX test_set (empty) \x2d ../configfile
|
|
#close XXXX-XX-XX-XX-XX-XX
|