@@ -1399,8 +1399,6 @@ func TestCreateVolume(t *testing.T) {
1399
1399
CapacityRange : capRange ,
1400
1400
}
1401
1401
1402
- expectedShareOptions := & fileclient.ShareOptions {Name : "vol-1" , Protocol : "SMB" , RequestGiB : 100 , AccessTier : "" , RootSquash : "" , Metadata : nil }
1403
-
1404
1402
d := NewFakeDriver ()
1405
1403
1406
1404
ctrl := gomock .NewController (t )
@@ -1410,7 +1408,7 @@ func TestCreateVolume(t *testing.T) {
1410
1408
d .cloud .StorageAccountClient = mockStorageAccountsClient
1411
1409
1412
1410
mockFileClient .EXPECT ().WithSubscriptionID (gomock .Any ()).Return (mockFileClient ).AnyTimes ()
1413
- mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), expectedShareOptions , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1411
+ mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock . Any () , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1414
1412
mockFileClient .EXPECT ().GetFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : & fakeShareQuota }}, nil ).AnyTimes ()
1415
1413
mockStorageAccountsClient .EXPECT ().ListKeys (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (keys , nil ).AnyTimes ()
1416
1414
mockStorageAccountsClient .EXPECT ().ListByResourceGroup (gomock .Any (), gomock .Any (), gomock .Any ()).Return (accounts , nil ).AnyTimes ()
@@ -1460,8 +1458,6 @@ func TestCreateVolume(t *testing.T) {
1460
1458
CapacityRange : capRange ,
1461
1459
}
1462
1460
1463
- expectedShareOptions := & fileclient.ShareOptions {Name : "vol-1" , Protocol : "SMB" , RequestGiB : 100 , AccessTier : "" , RootSquash : "" , Metadata : nil }
1464
-
1465
1461
d := NewFakeDriver ()
1466
1462
1467
1463
ctrl := gomock .NewController (t )
@@ -1471,7 +1467,7 @@ func TestCreateVolume(t *testing.T) {
1471
1467
d .cloud .StorageAccountClient = mockStorageAccountsClient
1472
1468
1473
1469
mockFileClient .EXPECT ().WithSubscriptionID (gomock .Any ()).Return (mockFileClient ).AnyTimes ()
1474
- mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), expectedShareOptions , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1470
+ mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock . Any () , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1475
1471
mockFileClient .EXPECT ().GetFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : & fakeShareQuota }}, nil ).AnyTimes ()
1476
1472
mockStorageAccountsClient .EXPECT ().ListKeys (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (keys , nil ).AnyTimes ()
1477
1473
mockStorageAccountsClient .EXPECT ().ListByResourceGroup (gomock .Any (), gomock .Any (), gomock .Any ()).Return (accounts , nil ).AnyTimes ()
@@ -1519,8 +1515,6 @@ func TestCreateVolume(t *testing.T) {
1519
1515
CapacityRange : capRange ,
1520
1516
}
1521
1517
1522
- expectedShareOptions := & fileclient.ShareOptions {Name : "vol-1" , Protocol : "SMB" , RequestGiB : 1 , AccessTier : "" , RootSquash : "" , Metadata : nil }
1523
-
1524
1518
d := NewFakeDriver ()
1525
1519
1526
1520
ctrl := gomock .NewController (t )
@@ -1530,7 +1524,7 @@ func TestCreateVolume(t *testing.T) {
1530
1524
d .cloud .StorageAccountClient = mockStorageAccountsClient
1531
1525
1532
1526
mockFileClient .EXPECT ().WithSubscriptionID (gomock .Any ()).Return (mockFileClient ).AnyTimes ()
1533
- mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), expectedShareOptions , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1527
+ mockFileClient .EXPECT ().CreateFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock . Any () , gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : nil }}, nil ).AnyTimes ()
1534
1528
mockFileClient .EXPECT ().GetFileShare (context .TODO (), gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (storage.FileShare {FileShareProperties : & storage.FileShareProperties {ShareQuota : & fakeShareQuota }}, nil ).AnyTimes ()
1535
1529
mockStorageAccountsClient .EXPECT ().ListKeys (gomock .Any (), gomock .Any (), gomock .Any (), gomock .Any ()).Return (keys , nil ).AnyTimes ()
1536
1530
mockStorageAccountsClient .EXPECT ().ListByResourceGroup (gomock .Any (), gomock .Any (), gomock .Any ()).Return (accounts , nil ).AnyTimes ()
0 commit comments