From f65457fc53c60942abddf9302592ca7bab989605 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 4 Jan 2024 16:00:41 +0100 Subject: [PATCH] tests: Add quicv2 test case / pcap Produced using the go-quic echo example and forcing QUIC v2. --- .../Baseline/tests.quicv2-echo-443/conn.log.cut | 3 +++ testing/Baseline/tests.quicv2-echo-443/quic.log | 11 +++++++++++ testing/Baseline/tests.quicv2-echo-443/ssl.log | 11 +++++++++++ testing/Traces/quicv2-echo-443.pcap | Bin 0 -> 7415 bytes testing/tests/quicv2-echo-443.zeek | 6 ++++++ 5 files changed, 31 insertions(+) create mode 100644 testing/Baseline/tests.quicv2-echo-443/conn.log.cut create mode 100644 testing/Baseline/tests.quicv2-echo-443/quic.log create mode 100644 testing/Baseline/tests.quicv2-echo-443/ssl.log create mode 100644 testing/Traces/quicv2-echo-443.pcap create mode 100644 testing/tests/quicv2-echo-443.zeek 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 0000000000000000000000000000000000000000..7b26d0de12cc5bcc3236998552121f81fc4b0ddf GIT binary patch literal 7415 zcmbW6bx<5_w#H|0clY2vxO)f$3laz#+}$;UdvJGx1()FN?(Ty_@Zb>ihHrQ4etWC- zkG-ersjlv>{?%LOR6nnr*`DegC;$xLU-9w+0095ocy=Y36y%`-&|m?7>0j?(uLyv5 zfIp7`VgNBr-XotsAH1rw2-pI1d|bR{#rbvu{a&8~YtTFtzfzck&q;d#0FWHfrcm+M zW_JfVu&0VDx6;*St~DyXd%Rh=a*$-l7aJ|ZSR5!#kEB^A9D`-t6G((Wo)MG_ZyAme zYIe;`q!@8SrTj9SyateWVeE+FD)hi=K~Yt)60xyo6UUlf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