Add unit tests

This commit is contained in:
Pengfei Ni
2018-08-29 14:19:36 +08:00
parent 919058b315
commit 9bbd5043ea
3 changed files with 107 additions and 0 deletions

View File

@@ -958,6 +958,7 @@ func getTestCloud() (az *Cloud) {
nodeInformerSynced: func() bool { return true },
nodeResourceGroups: map[string]string{},
unmanagedNodes: sets.NewString(),
routeCIDRs: map[string]string{},
}
az.DisksClient = newFakeDisksClient()
az.InterfacesClient = newFakeAzureInterfacesClient()