Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0ba1f23

Browse files
committedJul 20, 2022
removed unnecessary testcase from testdeletevolume
1 parent 1b17213 commit 0ba1f23

File tree

1 file changed

+0
-35
lines changed

1 file changed

+0
-35
lines changed
 

Diff for: ‎pkg/blob/controllerserver_test.go

-35
Original file line numberDiff line numberDiff line change
@@ -894,41 +894,6 @@ func TestDeleteVolume(t *testing.T) {
894894
}
895895
},
896896
},
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-
},*/
932897
}
933898
for _, tc := range testCases {
934899
t.Run(tc.name, tc.testFunc)

0 commit comments

Comments
 (0)
Please sign in to comment.