Add comprehensive integration tests (20 new tests, 54 total)
Some checks failed
CI / test (push) Has been cancelled

New test suite covers:
- TCP IPv4: send, receive, both
- UDP IPv4: send, receive, both
- TCP IPv6: send, receive, both
- UDP IPv6: send, receive, both
- MD5 authentication flow
- EC-SRP5 authentication flow
- EC-SRP5 wrong password rejection
- CSV file creation (client + server)
- Syslog event emission (AUTH_SUCCESS, TEST_START, TEST_END)
- BandwidthState record_interval and running flag

Each test starts a server, runs a client for 2 seconds, verifies
bytes transferred > 0, then cleans up.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-04-01 10:30:37 +04:00
parent 23db39a84e
commit 68eb0c7f96
2 changed files with 338 additions and 0 deletions

5
server_results.csv Normal file
View File

@@ -0,0 +1,5 @@
timestamp,host,port,protocol,direction,duration_s,tx_avg_mbps,rx_avg_mbps,tx_bytes,rx_bytes,lost_packets,auth_type
1775024492,172.16.81.1,59260,TCP,BOTH,57,9.97,2.98,71008256,21227792,0,ecsrp5
1775024501,172.16.81.1,59300,TCP,TX,9,42.41,0.00,47710208,0,0,ecsrp5
1775024526,172.16.81.1,59340,TCP,RX,442,0.00,2.46,0,136015152,0,ecsrp5
1775024533,172.16.81.1,59380,UDP,RX,6,0.00,59.49,0,44620736,16013664,ecsrp5
1 timestamp host port protocol direction duration_s tx_avg_mbps rx_avg_mbps tx_bytes rx_bytes lost_packets auth_type
2 1775024492 172.16.81.1 59260 TCP BOTH 57 9.97 2.98 71008256 21227792 0 ecsrp5
3 1775024501 172.16.81.1 59300 TCP TX 9 42.41 0.00 47710208 0 0 ecsrp5
4 1775024526 172.16.81.1 59340 TCP RX 442 0.00 2.46 0 136015152 0 ecsrp5
5 1775024533 172.16.81.1 59380 UDP RX 6 0.00 59.49 0 44620736 16013664 ecsrp5