mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Manually adding fix for failing pull-kubernetes-typecheck tests which had dependency with this commit: 6186303580
This commit is contained in:
parent
a1bb711b85
commit
92e3993bc7
@ -129,6 +129,26 @@ func NewFakeProxier(syncPeriod time.Duration, minSyncPeriod time.Duration, hostn
|
||||
return proxier
|
||||
}
|
||||
|
||||
func getHcnMock(networkType string) *fakehcn.HcnMock {
|
||||
var remoteSubnets []*remoteSubnetInfo
|
||||
rs := &remoteSubnetInfo{
|
||||
destinationPrefix: destinationPrefix,
|
||||
isolationID: 4096,
|
||||
providerAddress: providerAddress,
|
||||
drMacAddress: macAddress,
|
||||
}
|
||||
remoteSubnets = append(remoteSubnets, rs)
|
||||
hnsNetworkInfo := &hnsNetworkInfo{
|
||||
id: strings.ToUpper(guid),
|
||||
name: testNetwork,
|
||||
networkType: networkType,
|
||||
remoteSubnets: remoteSubnets,
|
||||
}
|
||||
hnsNetwork := newHnsNetwork(hnsNetworkInfo)
|
||||
hcnMock := fakehcn.NewHcnMock(hnsNetwork)
|
||||
return hcnMock
|
||||
}
|
||||
|
||||
func TestCreateServiceVip(t *testing.T) {
|
||||
syncPeriod := 30 * time.Second
|
||||
proxier := NewFakeProxier(syncPeriod, syncPeriod, "testhost", netutils.ParseIPSloppy("10.0.0.1"), NETWORK_TYPE_OVERLAY)
|
||||
|
Loading…
Reference in New Issue
Block a user