@@ -401,7 +401,7 @@ func TestCreateDriverReturnsInvalidCapacityDuringProvision(t *testing.T) {
401401
402402 pluginCaps , controllerCaps := provisionCapabilities ()
403403 csiProvisioner := NewCSIProvisioner (nil , 5 * time .Second , "test-provisioner" , "test" ,
404- 5 , csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil )
404+ 5 , csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil , nil )
405405
406406 // Requested PVC with requestedBytes storage
407407 deletePolicy := v1 .PersistentVolumeReclaimDelete
@@ -1464,7 +1464,7 @@ func runProvisionTest(t *testing.T, k string, tc provisioningTestcase, requested
14641464
14651465 pluginCaps , controllerCaps := provisionCapabilities ()
14661466 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 , csiConn .conn ,
1467- nil , provisionDriverName , pluginCaps , controllerCaps , supportsMigrationFromInTreePluginName , false , csitrans .New (), nil )
1467+ nil , provisionDriverName , pluginCaps , controllerCaps , supportsMigrationFromInTreePluginName , false , csitrans .New (), nil , nil )
14681468
14691469 out := & csi.CreateVolumeResponse {
14701470 Volume : & csi.Volume {
@@ -2031,7 +2031,7 @@ func TestProvisionFromSnapshot(t *testing.T) {
20312031
20322032 pluginCaps , controllerCaps := provisionFromSnapshotCapabilities ()
20332033 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 , csiConn .conn ,
2034- client , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil )
2034+ client , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil , nil )
20352035
20362036 out := & csi.CreateVolumeResponse {
20372037 Volume : & csi.Volume {
@@ -2201,11 +2201,11 @@ func TestProvisionWithTopologyEnabled(t *testing.T) {
22012201
22022202 clientSet := fakeclientset .NewSimpleClientset (nodes , csiNodes )
22032203
2204- csiNodeLister , stopChan := csiNodeLister (clientSet , t )
2204+ csiNodeLister , nodeLister , stopChan := listers (clientSet )
22052205 defer close (stopChan )
22062206
22072207 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 ,
2208- csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), csiNodeLister )
2208+ csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), csiNodeLister , nodeLister )
22092209
22102210 pv , err := csiProvisioner .Provision (controller.ProvisionOptions {
22112211 StorageClass : & storagev1.StorageClass {},
@@ -2260,7 +2260,7 @@ func TestProvisionWithTopologyDisabled(t *testing.T) {
22602260 clientSet := fakeclientset .NewSimpleClientset ()
22612261 pluginCaps , controllerCaps := provisionWithTopologyCapabilities ()
22622262 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 ,
2263- csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil )
2263+ csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil , nil )
22642264
22652265 out := & csi.CreateVolumeResponse {
22662266 Volume : & csi.Volume {
@@ -2440,7 +2440,7 @@ func runDeleteTest(t *testing.T, k string, tc deleteTestcase) {
24402440
24412441 pluginCaps , controllerCaps := provisionCapabilities ()
24422442 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 ,
2443- csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil )
2443+ csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil , nil )
24442444
24452445 err = csiProvisioner .Delete (tc .persistentVolume )
24462446 if tc .expectErr && err == nil {
@@ -3096,7 +3096,7 @@ func TestProvisionFromPVC(t *testing.T) {
30963096 }
30973097
30983098 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" , "test" , 5 , csiConn .conn ,
3099- nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil )
3099+ nil , driverName , pluginCaps , controllerCaps , "" , false , csitrans .New (), nil , nil )
31003100
31013101 pv , err := csiProvisioner .Provision (tc .volOpts )
31023102 if tc .expectErr && err == nil {
@@ -3175,7 +3175,7 @@ func TestProvisionWithMigration(t *testing.T) {
31753175 pluginCaps , controllerCaps := provisionCapabilities ()
31763176 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" ,
31773177 "test" , 5 , csiConn .conn , nil , driverName , pluginCaps , controllerCaps ,
3178- inTreePluginName , false , mockTranslator , nil )
3178+ inTreePluginName , false , mockTranslator , nil , nil )
31793179
31803180 // Set up return values (AnyTimes to avoid overfitting on implementation)
31813181
@@ -3335,7 +3335,7 @@ func TestDeleteMigration(t *testing.T) {
33353335 pluginCaps , controllerCaps := provisionCapabilities ()
33363336 csiProvisioner := NewCSIProvisioner (clientSet , 5 * time .Second , "test-provisioner" ,
33373337 "test" , 5 , csiConn .conn , nil , driverName , pluginCaps , controllerCaps , "" ,
3338- false , mockTranslator , nil )
3338+ false , mockTranslator , nil , nil )
33393339
33403340 // Set mock return values (AnyTimes to avoid overfitting on implementation details)
33413341 mockTranslator .EXPECT ().IsPVMigratable (gomock .Any ()).Return (tc .expectTranslation ).AnyTimes ()
0 commit comments