Report VPN fabric session stream usage
This commit is contained in:
@@ -261,6 +261,14 @@ func TestFabricSessionPacketTransportShardsStreamsByTrafficClass(t *testing.T) {
|
||||
if sender.frames[0].Sequence != 1 || sender.frames[1].Sequence != 1 {
|
||||
t.Fatalf("per-stream sequences = %d/%d, want 1/1", sender.frames[0].Sequence, sender.frames[1].Sequence)
|
||||
}
|
||||
snapshot := transport.Snapshot()
|
||||
if snapshot["schema_version"] != "rap.vpn_fabric_session_packet_transport.v1" {
|
||||
t.Fatalf("snapshot schema missing: %+v", snapshot)
|
||||
}
|
||||
framesByClass := snapshot["send_frames_by_class"].(map[string]uint64)
|
||||
if framesByClass[FabricTrafficClassBulk] != 1 || framesByClass[FabricTrafficClassInteractive] != 1 {
|
||||
t.Fatalf("send frames by class = %+v", framesByClass)
|
||||
}
|
||||
}
|
||||
|
||||
func TestFabricSessionPacketTransportRunFrameIngressDeliversInbox(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user