Skip to content

Commit 2b22558

Browse files
committed
removed faulty testcase
1 parent a7f487c commit 2b22558

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

pkg/blob/nodeserver_test.go

-29
Original file line numberDiff line numberDiff line change
@@ -486,35 +486,6 @@ func TestNodeStageVolume(t *testing.T) {
486486
}
487487
},
488488
},
489-
{
490-
name: "[Error] GetAuthEnv Error (could not find container name)",
491-
testFunc: func(t *testing.T) {
492-
req := &csi.NodeStageVolumeRequest{
493-
VolumeId: "unit-test",
494-
StagingTargetPath: targetTest,
495-
VolumeCapability: &csi.VolumeCapability{AccessMode: &volumeCap},
496-
VolumeContext: map[string]string{
497-
mountPermissionsField: "0755",
498-
protocolField: "protocol",
499-
},
500-
Secrets: map[string]string{},
501-
}
502-
d := NewFakeDriver()
503-
d.cloud = provider.GetTestCloud(gomock.NewController(t))
504-
d.cloud.ResourceGroup = "rg"
505-
fakeMounter := &fakeMounter{}
506-
fakeExec := &testingexec.FakeExec{}
507-
d.mounter = &mount.SafeFormatAndMount{
508-
Interface: fakeMounter,
509-
Exec: fakeExec,
510-
}
511-
_, err := d.NodeStageVolume(context.TODO(), req)
512-
expectedErr := fmt.Errorf("could not find containerName from attributes(%v) or volumeID(%v)", req.GetVolumeContext(), req.VolumeId)
513-
if !reflect.DeepEqual(err, expectedErr) {
514-
t.Errorf("actualErr: (%v), expectedErr: (%v)", err, expectedErr)
515-
}
516-
},
517-
},
518489
{
519490
name: "protocol = nfs",
520491
testFunc: func(t *testing.T) {

0 commit comments

Comments
 (0)