Skip to content

Commit 0efb03f

Browse files
committed
updated unit test
1 parent 227be2f commit 0efb03f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cni/network/network_windows_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,12 @@ func GetTestCNSResponseSecondaryWindows(macAddress string) map[string]network.In
878878
SkipDefaultRoutes: true,
879879
NICType: cns.InfraNIC,
880880
HostSubnetPrefix: *getCIDRNotationForAddress("20.224.0.0/16"),
881+
EndpointPolicies: []policy.Policy{
882+
{
883+
Type: policy.EndpointPolicy,
884+
Data: GetRawACLPolicy(),
885+
},
886+
},
881887
},
882888
macAddress: {
883889
MacAddress: parsedMAC,
@@ -1226,6 +1232,12 @@ func TestPluginWindowsAdd(t *testing.T) {
12261232
Gateway: net.ParseIP("10.244.2.1"),
12271233
},
12281234
},
1235+
EndpointPolicies: []policy.Policy{
1236+
{
1237+
Type: policy.EndpointPolicy,
1238+
Data: GetRawACLPolicy(),
1239+
},
1240+
},
12291241
},
12301242
epIDRegex: `.*`,
12311243
},

0 commit comments

Comments
 (0)