Skip to content

Commit 4229833

Browse files
committed
Updated unit tests with new dpulicate field in flows
1 parent fc3940d commit 4229833

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

pkg/pipeline/decode/decode_protobuf_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func TestDecodeProtobuf(t *testing.T) {
5858
"SrcMac": "01:02:03:04:05:06",
5959
"SrcPort": uint32(23000),
6060
"DstPort": uint32(443),
61+
"Duplicate": false,
6162
"Etype": uint32(2048),
6263
"Packets": uint64(123),
6364
"Proto": uint32(1),
@@ -77,6 +78,7 @@ func TestPBFlowToMap(t *testing.T) {
7778
Direction: pbflow.Direction_EGRESS,
7879
TimeFlowStart: timestamppb.New(someTime),
7980
TimeFlowEnd: timestamppb.New(someTime),
81+
Duplicate: true,
8082
Network: &pbflow.Network{
8183
SrcAddr: &pbflow.IP{
8284
IpFamily: &pbflow.IP_Ipv4{Ipv4: 0x01020304},
@@ -108,6 +110,7 @@ func TestPBFlowToMap(t *testing.T) {
108110
"SrcMac": "01:02:03:04:05:06",
109111
"SrcPort": uint32(23000),
110112
"DstPort": uint32(443),
113+
"Duplicate": true,
111114
"Etype": uint32(2048),
112115
"Packets": uint64(123),
113116
"Proto": uint32(1),

pkg/pipeline/pipeline_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ parameters:
220220
"SrcMac": "01:02:03:04:05:06",
221221
"SrcPort": float64(23000),
222222
"DstPort": float64(443),
223+
"Duplicate": false,
223224
"Etype": float64(2048),
224225
"Packets": float64(123),
225226
"Proto": float64(1),

0 commit comments

Comments
 (0)