@@ -486,35 +486,6 @@ func TestNodeStageVolume(t *testing.T) {
486
486
}
487
487
},
488
488
},
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
- },
518
489
{
519
490
name : "protocol = nfs" ,
520
491
testFunc : func (t * testing.T ) {
0 commit comments