func GetTestCloud(ctrl *gomock.Controller) (az *Cloud) {
	az = &Cloud{
		Config: Config{
			AzureAuthConfig: auth.AzureAuthConfig{
				TenantID:       "tenant",
				SubscriptionID: "subscription",
			},
			ResourceGroup:                "rg",
			VnetResourceGroup:            "rg",
			RouteTableResourceGroup:      "rg",
			SecurityGroupResourceGroup:   "rg",
			Location:                     "westus",
			VnetName:                     "vnet",
			SubnetName:                   "subnet",
			SecurityGroupName:            "nsg",
			RouteTableName:               "rt",
			PrimaryAvailabilitySetName:   "as",
			PrimaryScaleSetName:          "vmss",
			MaximumLoadBalancerRuleCount: 250,
			VMType:                       vmTypeStandard,
		},
		nodeZones:          map[string]sets.String{},
		nodeInformerSynced: func() bool { return true },
		nodeResourceGroups: map[string]string{},
		unmanagedNodes:     sets.NewString(),
		routeCIDRs:         map[string]string{},
		eventRecorder:      &record.FakeRecorder{},
	}
	az.DisksClient = mockdiskclient.NewMockInterface(ctrl)
	az.InterfacesClient = mockinterfaceclient.NewMockInterface(ctrl)
	az.LoadBalancerClient = mockloadbalancerclient.NewMockInterface(ctrl)
	az.PublicIPAddressesClient = mockpublicipclient.NewMockInterface(ctrl)
	az.RoutesClient = mockrouteclient.NewMockInterface(ctrl)
	az.RouteTablesClient = mockroutetableclient.NewMockInterface(ctrl)
	az.SecurityGroupsClient = mocksecuritygroupclient.NewMockInterface(ctrl)
	az.SubnetsClient = mocksubnetclient.NewMockInterface(ctrl)
	az.VirtualMachineScaleSetsClient = mockvmssclient.NewMockInterface(ctrl)
	az.VirtualMachineScaleSetVMsClient = mockvmssvmclient.NewMockInterface(ctrl)
	az.VirtualMachinesClient = mockvmclient.NewMockInterface(ctrl)
	az.vmSet = newAvailabilitySet(az)
	az.vmCache, _ = az.newVMCache()
	az.lbCache, _ = az.newLBCache()
	az.nsgCache, _ = az.newNSGCache()
	az.rtCache, _ = az.newRouteTableCache()

	common := &controllerCommon{cloud: az, resourceGroup: "rg", location: "westus"}
	az.controllerCommon = common
	az.ManagedDiskController = &ManagedDiskController{common: common}

	return az
}
// GetTestCloud returns a fake azure cloud for unit tests in Azure related CSI drivers
GetTestCloud returns a fake azure cloud for unit tests in Azure related CSI drivers
// GetTestCloud returns a fake azure cloud for unit tests in Azure related CSI drivers
func GetTestCloud(ctrl *gomock.Controller) (az *Cloud) {
	az = &Cloud{
		Config: Config{
			AzureAuthConfig: auth.AzureAuthConfig{
				TenantID:       "tenant",
				SubscriptionID: "subscription",
			},
			ResourceGroup:                "rg",
			VnetResourceGroup:            "rg",
			RouteTableResourceGroup:      "rg",
			SecurityGroupResourceGroup:   "rg",
			Location:                     "westus",
			VnetName:                     "vnet",
			SubnetName:                   "subnet",
			SecurityGroupName:            "nsg",
			RouteTableName:               "rt",
			PrimaryAvailabilitySetName:   "as",
			PrimaryScaleSetName:          "vmss",
			MaximumLoadBalancerRuleCount: 250,
			VMType:                       vmTypeStandard,
		},
		nodeZones:          map[string]sets.String{},
		nodeInformerSynced: func() bool { return true },
		nodeResourceGroups: map[string]string{},
		unmanagedNodes:     sets.NewString(),
		routeCIDRs:         map[string]string{},
		eventRecorder:      &record.FakeRecorder{},
	}
	az.DisksClient = mockdiskclient.NewMockInterface(ctrl)
	az.InterfacesClient = mockinterfaceclient.NewMockInterface(ctrl)
	az.LoadBalancerClient = mockloadbalancerclient.NewMockInterface(ctrl)
	az.PublicIPAddressesClient = mockpublicipclient.NewMockInterface(ctrl)
	az.RoutesClient = mockrouteclient.NewMockInterface(ctrl)
	az.RouteTablesClient = mockroutetableclient.NewMockInterface(ctrl)
	az.SecurityGroupsClient = mocksecuritygroupclient.NewMockInterface(ctrl)
	az.SubnetsClient = mocksubnetclient.NewMockInterface(ctrl)
	az.VirtualMachineScaleSetsClient = mockvmssclient.NewMockInterface(ctrl)
	az.VirtualMachineScaleSetVMsClient = mockvmssvmclient.NewMockInterface(ctrl)
	az.VirtualMachinesClient = mockvmclient.NewMockInterface(ctrl)
	az.vmSet = newAvailabilitySet(az)
	az.vmCache, _ = az.newVMCache()
	az.lbCache, _ = az.newLBCache()
	az.nsgCache, _ = az.newNSGCache()
	az.rtCache, _ = az.newRouteTableCache()
	common := &controllerCommon{cloud: az, resourceGroup: "rg", location: "westus"}
	az.controllerCommon = common
	az.ManagedDiskController = &ManagedDiskController{common: common}
	return az
}
func GetTestCloud ( ctrl * gomock . Controller ) ( az * Cloud ) { az = & Cloud { Config : Config { AzureAuthConfig : auth . AzureAuthConfig { TenantID : " " , SubscriptionID : " " , } , ResourceGroup : " " , VnetResourceGroup : " " , RouteTableResourceGroup : " " , SecurityGroupResourceGroup : " " , Location : " " , VnetName : " " , SubnetName : " " , SecurityGroupName : " " , RouteTableName : " " , PrimaryAvailabilitySetName : " " , PrimaryScaleSetName : " " , MaximumLoadBalancerRuleCount : 250 , VMType : vmTypeStandard , } , nodeZones : map [ string ] sets . String { } , nodeInformerSynced : func ( ) bool { return true } , nodeResourceGroups : map [ string ] string { } , unmanagedNodes : sets . NewString ( ) , routeCIDRs : map [ string ] string { } , eventRecorder : & record . FakeRecorder { } , } az . DisksClient = mockdiskclient . NewMockInterface ( ctrl ) az . InterfacesClient = mockinterfaceclient . NewMockInterface ( ctrl ) az . LoadBalancerClient = mockloadbalancerclient . NewMockInterface ( ctrl ) az . PublicIPAddressesClient = mockpublicipclient . NewMockInterface ( ctrl ) az . RoutesClient = mockrouteclient . NewMockInterface ( ctrl ) az . RouteTablesClient = mockroutetableclient . NewMockInterface ( ctrl ) az . SecurityGroupsClient = mocksecuritygroupclient . NewMockInterface ( ctrl ) az . SubnetsClient = mocksubnetclient . NewMockInterface ( ctrl ) az . VirtualMachineScaleSetsClient = mockvmssclient . NewMockInterface ( ctrl ) az . VirtualMachineScaleSetVMsClient = mockvmssvmclient . NewMockInterface ( ctrl ) az . VirtualMachinesClient = mockvmclient . NewMockInterface ( ctrl ) az . vmSet = newAvailabilitySet ( az ) az . vmCache , _ = az . newVMCache ( ) az . lbCache , _ = az . newLBCache ( ) az . nsgCache , _ = az . newNSGCache ( ) az . rtCache , _ = az . newRouteTableCache ( ) common := & controllerCommon { cloud : az , resourceGroup : " " , location : " " } az . controllerCommon = common az . ManagedDiskController = & ManagedDiskController { common : common } return az }
GetTestCloud returns a fake azure cloud for unit tests in Azure related CSI drivers
GetTestCloud returns a fake azure cloud for unit tests in Azure related CSI drivers