From a6cd56ae7ea839c7fece49dcff6654db61bb2af5 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 21 Jul 2022 11:26:45 +0200 Subject: [PATCH] e2e: correct failure logging for NFS Some of the steps still refer to CephFS, likely missed some replacements while copy/pasting. The logging is a little confusing when messages claim something with CephFS failed, but the test is about NFS. Signed-off-by: Niels de Vos --- e2e/nfs.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/e2e/nfs.go b/e2e/nfs.go index 061fb6bac..874346e28 100644 --- a/e2e/nfs.go +++ b/e2e/nfs.go @@ -373,7 +373,7 @@ var _ = Describe("nfs", func() { By("verify RWOP volume support", func() { err := createNFSStorageClass(f.ClientSet, f, false, nil) if err != nil { - e2elog.Failf("failed to create CephFS storageclass: %v", err) + e2elog.Failf("failed to create NFS storageclass: %v", err) } pvc, err := loadPVC(pvcRWOPPath) if err != nil { @@ -411,40 +411,40 @@ var _ = Describe("nfs", func() { validateSubvolumeCount(f, 0, fileSystemName, defaultSubvolumegroup) err = deleteResource(nfsExamplePath + "storageclass.yaml") if err != nil { - e2elog.Failf("failed to delete CephFS storageclass: %v", err) + e2elog.Failf("failed to delete NFS storageclass: %v", err) } }) By("create a storageclass with pool and a PVC then bind it to an app", func() { err := createNFSStorageClass(f.ClientSet, f, false, nil) if err != nil { - e2elog.Failf("failed to create CephFS storageclass: %v", err) + e2elog.Failf("failed to create NFS storageclass: %v", err) } err = validatePVCAndAppBinding(pvcPath, appPath, f) if err != nil { - e2elog.Failf("failed to validate CephFS pvc and application binding: %v", err) + e2elog.Failf("failed to validate NFS pvc and application binding: %v", err) } err = deleteResource(nfsExamplePath + "storageclass.yaml") if err != nil { - e2elog.Failf("failed to delete CephFS storageclass: %v", err) + e2elog.Failf("failed to delete NFS storageclass: %v", err) } }) By("create a PVC and bind it to an app", func() { err := createNFSStorageClass(f.ClientSet, f, false, nil) if err != nil { - e2elog.Failf("failed to create CephFS storageclass: %v", err) + e2elog.Failf("failed to create NFS storageclass: %v", err) } err = validatePVCAndAppBinding(pvcPath, appPath, f) if err != nil { - e2elog.Failf("failed to validate CephFS pvc and application binding: %v", err) + e2elog.Failf("failed to validate NFS pvc and application binding: %v", err) } }) By("create a PVC and bind it to an app with normal user", func() { err := validateNormalUserPVCAccess(pvcPath, f) if err != nil { - e2elog.Failf("failed to validate normal user CephFS pvc and application binding: %v", err) + e2elog.Failf("failed to validate normal user NFS pvc and application binding: %v", err) } })