@@ -36,8 +36,6 @@ import (
36
36
"k8s.io/client-go/kubernetes"
37
37
"k8s.io/client-go/kubernetes/fake"
38
38
39
- //fakecloud "k8s.io/cloud-provider/fake"
40
-
41
39
"sigs.k8s.io/blob-csi-driver/pkg/util"
42
40
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/storageaccountclient/mockstorageaccountclient"
43
41
azure "sigs.k8s.io/cloud-provider-azure/pkg/provider"
@@ -827,7 +825,7 @@ func TestGetStorageAccount(t *testing.T) {
827
825
}
828
826
}
829
827
830
- //needs editing, could only get past first error for testing, could not get a fake environment running
828
+ // needs editing, could only get past first error for testing, could not get a fake environment running
831
829
func TestGetContainerReference (t * testing.T ) {
832
830
fakeAccountName := "storageaccountname"
833
831
fakeAccountKey := "test-key"
@@ -882,7 +880,6 @@ func TestGetContainerReference(t *testing.T) {
882
880
883
881
d := NewFakeDriver ()
884
882
d .cloud = azure .GetTestCloud (gomock .NewController (t ))
885
- //encodedStr := base64.StdEncoding.EncodeToString([]byte{12, 34, 56})
886
883
d .cloud .KubeClient = fake .NewSimpleClientset ()
887
884
888
885
for _ , tc := range testCases {
@@ -961,7 +958,7 @@ func TestGetStorageAccesskey(t *testing.T) {
961
958
SubscriptionID : "test-subID" ,
962
959
ResourceGroup : "test-rg" ,
963
960
}
964
- fakeAccName := options .Name //fmt.Sprintf(secretNameTemplate, options.Name)
961
+ fakeAccName := options .Name
965
962
fakeAccKey := "test-key"
966
963
secretNamespace := "test-ns"
967
964
testCases := []struct {
@@ -1065,8 +1062,8 @@ func TestGetStorageAccountFromSecret(t *testing.T) {
1065
1062
secretName := ""
1066
1063
secretNamespace := ""
1067
1064
_ , _ , err := d .GetStorageAccountFromSecret (secretName , secretNamespace )
1068
- //expectedErr := fmt.Errorf("could not get secret(%v): %w", secretName, err)
1069
- assert .Error (t , err ) //could not check what type of error, needs fix
1065
+ // expectedErr := fmt.Errorf("could not get secret(%v): %w", secretName, err)
1066
+ assert .Error (t , err ) // could not check what type of error, needs fix
1070
1067
/*if assert.Error(t, err) {
1071
1068
assert.Equal(t, expectedErr, err)
1072
1069
}*/
0 commit comments