@@ -894,41 +894,6 @@ func TestDeleteVolume(t *testing.T) {
894
894
}
895
895
},
896
896
},
897
- /*{//fake environment needed
898
- name: "Successful I/O",
899
- testFunc: func(t *testing.T) {
900
- d := NewFakeDriver()
901
- d.cloud = &azure.Cloud{}
902
- d.Cap = []*csi.ControllerServiceCapability{
903
- controllerServiceCapability,
904
- }
905
- req := &csi.DeleteVolumeRequest{
906
- VolumeId: "rg#accountname#containerName",
907
- Secrets: map[string]string{
908
- defaultSecretAccountName: "accountname",
909
- defaultSecretAccountKey: "b",
910
- },
911
- }
912
- d.dataPlaneAPIVolMap.Store("rg#accountname#containerName", "accountname")
913
-
914
- s := "accountname"
915
- accountkey := storage.AccountKey{
916
- Value: &s,
917
- }
918
- accountkeylist := []storage.AccountKey{}
919
- accountkeylist = append(accountkeylist, accountkey)
920
- d.cloud.StorageAccountClient = NewMockSAClient(gomock.NewController(t), context.Background(), "subsID", "rg", "accountname", &accountkeylist)
921
-
922
- errorType := NULL
923
- d.cloud.BlobClient = &mockBlobClient{errorType: &errorType}
924
-
925
- _, err := d.DeleteVolume(context.Background(), req)
926
- var expectedErr error = nil
927
- if !reflect.DeepEqual(err, expectedErr) {
928
- t.Errorf("\nactualErr: %v, \nexpectedErr:(%v", err, expectedErr)
929
- }
930
- },
931
- },*/
932
897
}
933
898
for _ , tc := range testCases {
934
899
t .Run (tc .name , tc .testFunc )
0 commit comments