@@ -458,7 +458,7 @@ func testVolumeContent(f *framework.Framework, pod *v1.Pod, fsGroup *int64, fsTy
458
458
// Block: check content
459
459
deviceName := fmt .Sprintf ("/opt/%d" , i )
460
460
commands := generateReadBlockCmd (deviceName , len (test .ExpectedContent ))
461
- _ , err := framework .LookForStringInPodExec (pod .Namespace , pod .Name , "" , commands , test .ExpectedContent , time .Minute )
461
+ _ , err := framework .LookForStringInPodExec (pod .Namespace , pod .Name , commands , test .ExpectedContent , time .Minute )
462
462
framework .ExpectNoError (err , "failed: finding the contents of the block device %s." , deviceName )
463
463
464
464
// Check that it's a real block device
@@ -467,7 +467,7 @@ func testVolumeContent(f *framework.Framework, pod *v1.Pod, fsGroup *int64, fsTy
467
467
// Filesystem: check content
468
468
fileName := fmt .Sprintf ("/opt/%d/%s" , i , test .File )
469
469
commands := generateReadFileCmd (fileName )
470
- _ , err := framework .LookForStringInPodExec (pod .Namespace , pod .Name , "" , commands , test .ExpectedContent , time .Minute )
470
+ _ , err := framework .LookForStringInPodExec (pod .Namespace , pod .Name , commands , test .ExpectedContent , time .Minute )
471
471
framework .ExpectNoError (err , "failed: finding the contents of the mounted file %s." , fileName )
472
472
473
473
// Check that a directory has been mounted
@@ -478,14 +478,14 @@ func testVolumeContent(f *framework.Framework, pod *v1.Pod, fsGroup *int64, fsTy
478
478
// Filesystem: check fsgroup
479
479
if fsGroup != nil {
480
480
ginkgo .By ("Checking fsGroup is correct." )
481
- _ , err = framework .LookForStringInPodExec (pod .Namespace , pod .Name , "" , []string {"ls" , "-ld" , dirName }, strconv .Itoa (int (* fsGroup )), time .Minute )
481
+ _ , err = framework .LookForStringInPodExec (pod .Namespace , pod .Name , []string {"ls" , "-ld" , dirName }, strconv .Itoa (int (* fsGroup )), time .Minute )
482
482
framework .ExpectNoError (err , "failed: getting the right privileges in the file %v" , int (* fsGroup ))
483
483
}
484
484
485
485
// Filesystem: check fsType
486
486
if fsType != "" {
487
487
ginkgo .By ("Checking fsType is correct." )
488
- _ , err = framework .LookForStringInPodExec (pod .Namespace , pod .Name , "" , []string {"grep" , " " + dirName + " " , "/proc/mounts" }, fsType , time .Minute )
488
+ _ , err = framework .LookForStringInPodExec (pod .Namespace , pod .Name , []string {"grep" , " " + dirName + " " , "/proc/mounts" }, fsType , time .Minute )
489
489
framework .ExpectNoError (err , "failed: getting the right fsType %s" , fsType )
490
490
}
491
491
}
0 commit comments