Skip to content

Commit b23e637

Browse files
committed
Manually adding fix for failing pull-kubernetes-typecheck tests which had dependency with this commit: kubernetes@6186303
1 parent 76bf5db commit b23e637

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pkg/proxy/winkernel/proxier_test.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,26 @@ func NewFakeProxier(syncPeriod time.Duration, minSyncPeriod time.Duration, hostn
129129
return proxier
130130
}
131131

132+
func getHcnMock(networkType string) *fakehcn.HcnMock {
133+
var remoteSubnets []*remoteSubnetInfo
134+
rs := &remoteSubnetInfo{
135+
destinationPrefix: destinationPrefix,
136+
isolationID: 4096,
137+
providerAddress: providerAddress,
138+
drMacAddress: macAddress,
139+
}
140+
remoteSubnets = append(remoteSubnets, rs)
141+
hnsNetworkInfo := &hnsNetworkInfo{
142+
id: strings.ToUpper(guid),
143+
name: testNetwork,
144+
networkType: networkType,
145+
remoteSubnets: remoteSubnets,
146+
}
147+
hnsNetwork := newHnsNetwork(hnsNetworkInfo)
148+
hcnMock := fakehcn.NewHcnMock(hnsNetwork)
149+
return hcnMock
150+
}
151+
132152
func TestCreateServiceVip(t *testing.T) {
133153
syncPeriod := 30 * time.Second
134154
proxier := NewFakeProxier(syncPeriod, syncPeriod, "testhost", netutils.ParseIPSloppy("10.0.0.1"), NETWORK_TYPE_OVERLAY)

0 commit comments

Comments
 (0)