mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
ci: non-constant format string (govet)
Signed-off-by: Praveen M <m.praveen@ibm.com>
This commit is contained in:
@ -279,7 +279,7 @@ var _ = Describe("nfs", func() {
|
||||
|
||||
err = createSubvolumegroup(f, fileSystemName, subvolumegroup)
|
||||
if err != nil {
|
||||
framework.Failf("%v", err)
|
||||
framework.Failf("failed to create subvolumegroup %s: %v", subvolumegroup, err)
|
||||
}
|
||||
})
|
||||
|
||||
@ -320,7 +320,7 @@ var _ = Describe("nfs", func() {
|
||||
}
|
||||
err = deleteSubvolumegroup(f, fileSystemName, subvolumegroup)
|
||||
if err != nil {
|
||||
framework.Failf("%v", err)
|
||||
framework.Failf("failed to delete subvolumegroup %s: %v", subvolumegroup, err)
|
||||
}
|
||||
|
||||
if deployNFS {
|
||||
@ -607,14 +607,15 @@ var _ = Describe("nfs", func() {
|
||||
}
|
||||
|
||||
filePath := app.Spec.Containers[0].VolumeMounts[0].MountPath + "/test"
|
||||
cmd := "echo 'Hello World' > " + filePath
|
||||
_, stdErr := execCommandInPodAndAllowFail(
|
||||
f,
|
||||
"echo 'Hello World' > "+filePath,
|
||||
cmd,
|
||||
app.Namespace,
|
||||
&opt)
|
||||
readOnlyErr := fmt.Sprintf("cannot create %s: Read-only file system", filePath)
|
||||
if !strings.Contains(stdErr, readOnlyErr) {
|
||||
framework.Failf(stdErr)
|
||||
framework.Failf("failed to execute command %s: %v", cmd, stdErr)
|
||||
}
|
||||
|
||||
// delete PVC and app
|
||||
|
Reference in New Issue
Block a user