Skip to content

Commit

Permalink
tests: Add quicv2 test case / pcap
Browse files Browse the repository at this point in the history
Produced using the go-quic  echo example and forcing QUIC v2.
  • Loading branch information
awelzel committed Jan 4, 2024
1 parent 7cbf5e2 commit 85ed196
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testing/Baseline/tests.quicv2-echo-443/conn.log.cut
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions testing/Baseline/tests.quicv2-echo-443/quic.log
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions testing/Baseline/tests.quicv2-echo-443/ssl.log
Original file line number Diff line number Diff line change
@@ -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
Binary file added testing/Traces/quicv2-echo-443.pcap
Binary file not shown.
6 changes: 6 additions & 0 deletions testing/tests/quicv2-echo-443.zeek
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 85ed196

Please sign in to comment.