Summarize VPN fabric stream sharding health
This commit is contained in:
@@ -265,6 +265,13 @@ func TestFabricSessionPacketTransportShardsStreamsByTrafficClass(t *testing.T) {
|
||||
if snapshot["schema_version"] != "rap.vpn_fabric_session_packet_transport.v1" {
|
||||
t.Fatalf("snapshot schema missing: %+v", snapshot)
|
||||
}
|
||||
if snapshot["stream_class_count"] != 2 ||
|
||||
snapshot["stream_shard_count"] != 4 ||
|
||||
snapshot["send_class_count"] != 2 ||
|
||||
snapshot["send_stream_count"] != 2 ||
|
||||
snapshot["sharding_active"] != true {
|
||||
t.Fatalf("unexpected shard summary: %+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)
|
||||
|
||||
Reference in New Issue
Block a user