mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-24 06:44:34 +02:00
test(e2e): relay capture and markers on both relay engines
The relay engines' observable paths had no live coverage: every capture/start call in the suite sat on a kernel anchor (AF_PACKET capture start_kernel) and markers were only asserted on marker add_kernel. The two relay engines' own command shapes were unit-tested only: * bridge engine - bridge start_capture / bridge add_packet_filter ... mark * iol_bridge engine - iol_bridge start_capture / iol_bridge add_packet_filter ... mark Docker relay control (bridge engine, 1 passed 33s): the capture start REST call writes the ICMP exchange to a pcap off the relay bridge; a mark filter attached with capture_node_id n1 signals exactly 10 marker.match events over the dedicated marker WS for 5 pings (5 requests + 5 replies, both directions), carrying node_id/link_id/tag and the busybox frame length, writes exactly those 10 frames to the marker pcap, and deleting the marker takes the pcap with it. IOU relay control (iol_bridge engine, 1 passed 173s): the same two checks on iol_bridge start_capture and the port's mark filter, driven by the real IOS ping through the fabric socket relay. Not duplicated in the ESW/VPCS/cloud relay controls: they issue the same uBridge bridge commands through their own call sites, which stay covered by unit tests; the IOL container relay goes through the same iol_bridge engine already exercised here.
This commit is contained in:
5 files changed
+126
-9
No files matched your search
+6
-3
@@ -83,7 +83,8 @@ Current scenarios:
|
||||
spot check and a filter surviving a node restart, a serial link staying
|
||||
on the relay (serial bays never anchor), and a relay negative control
|
||||
whose filters ride the IOU-specific `iol_bridge add_packet_filter` engine
|
||||
(delay and frequency_drop measured through real traffic).
|
||||
(delay and frequency_drop measured through real traffic, capture and
|
||||
markers on `iol_bridge start_capture` and the port's `mark` filter).
|
||||
* `test_qemu_kernel_datapath.py` — two real IOSv routers (a real qcow2
|
||||
image from the images directory's `QEMU` subfolder, linked clone, the
|
||||
real IOS CLI on the server's telnet console): the anchor TAP is QEMU's
|
||||
@@ -97,8 +98,10 @@ Current scenarios:
|
||||
(netem core and extensions, cls_bpf match-drop, the eBPF classifier —
|
||||
each measured through real traffic), plus a relay negative control whose
|
||||
own filters (delay, frequency_drop, bpf) really shape the wire as uBridge
|
||||
userspace bridge filters, and a relay→kernel reopen upgrade (the server's
|
||||
datapath choice is flipped across a restart).
|
||||
userspace bridge filters and whose capture and markers ride the relay
|
||||
engine (`bridge start_capture` / the bridge `mark` filter), and a
|
||||
relay→kernel reopen upgrade (the server's datapath choice is flipped
|
||||
across a restart).
|
||||
* `test_marker_kernel_datapath.py` — two real Alpine containers on a
|
||||
kernel-only link with traffic-insight markers attached to a veth anchor
|
||||
(`marker add_kernel`): `marker.match` signals collected off the dedicated
|
||||
|
||||
Reference in new issue
Block a user