diff --git a/testing/Baseline/tests.quicv2-echo-443/conn.log.cut b/testing/Baseline/tests.quicv2-echo-443/conn.log.cut new file mode 100644 index 0000000..46d72b1 --- /dev/null +++ b/testing/Baseline/tests.quicv2-echo-443/conn.log.cut @@ -0,0 +1,3 @@ +### BTest baseline data generated by btest-diff. Do not edit. Use "btest -U/-u" to update. Requires BTest >= 0.63. +ts uid history service +XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 Dd quic,ssl diff --git a/testing/Baseline/tests.quicv2-echo-443/quic.log b/testing/Baseline/tests.quicv2-echo-443/quic.log new file mode 100644 index 0000000..2680a6b --- /dev/null +++ b/testing/Baseline/tests.quicv2-echo-443/quic.log @@ -0,0 +1,11 @@ +### 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 quic +#open XXXX-XX-XX-XX-XX-XX +#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p version client_initial_dcid server_scid server_name client_protocol history +#types time string addr port addr port string string string string string string +XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 49320 127.0.0.1 443 quicv2 fa603212c8688817af3d3238735bc7 b168b5cc localhost quic-echo-example ISIIisIH +#close XXXX-XX-XX-XX-XX-XX diff --git a/testing/Baseline/tests.quicv2-echo-443/ssl.log b/testing/Baseline/tests.quicv2-echo-443/ssl.log new file mode 100644 index 0000000..0167629 --- /dev/null +++ b/testing/Baseline/tests.quicv2-echo-443/ssl.log @@ -0,0 +1,11 @@ +### 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 ssl +#open XXXX-XX-XX-XX-XX-XX +#fields ts uid id.orig_h id.orig_p id.resp_h id.resp_p version cipher curve server_name resumed last_alert next_protocol established ssl_history cert_chain_fps client_cert_chain_fps sni_matches_cert +#types time string addr port addr port string string string string bool string string bool string vector[string] vector[string] bool +XXXXXXXXXX.XXXXXX CHhAvVGS1DHFjwGM9 127.0.0.1 49320 127.0.0.1 443 TLSv13 TLS_AES_128_GCM_SHA256 x25519 localhost F - - F Cs - - - +#close XXXX-XX-XX-XX-XX-XX diff --git a/testing/Traces/quicv2-echo-443.pcap b/testing/Traces/quicv2-echo-443.pcap new file mode 100644 index 0000000..7b26d0d Binary files /dev/null and b/testing/Traces/quicv2-echo-443.pcap differ diff --git a/testing/tests/quicv2-echo-443.zeek b/testing/tests/quicv2-echo-443.zeek new file mode 100644 index 0000000..9593e9b --- /dev/null +++ b/testing/tests/quicv2-echo-443.zeek @@ -0,0 +1,6 @@ +# @TEST-DOC: Pcap with quicv2 echo traffic as produced by https://raw.githubusercontent.com/quic-go/quic-go/master/example/echo/echo.go +# @TEST-EXEC: zeek -Cr $TRACES/quicv2-echo-443.pcap $PACKAGE +# @TEST-EXEC: zeek-cut -m ts uid history service < conn.log > conn.log.cut +# @TEST-EXEC: btest-diff conn.log.cut +# @TEST-EXEC: btest-diff ssl.log +# @TEST-EXEC: btest-diff quic.log