cleanup: correct createORdeleteRbdResources() function name

This patch address a typo in the mentioned function name

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
Humble Chirammal 2021-06-10 16:30:26 +05:30 committed by mergify[bot]
parent 6b86391bb2
commit fad1b602e1

View File

@ -60,17 +60,17 @@ func deployRBDPlugin() {
e2elog.Failf("failed to delete nodeplugin rbac %s with error %v", rbdDirPath+rbdNodePluginRBAC, err) e2elog.Failf("failed to delete nodeplugin rbac %s with error %v", rbdDirPath+rbdNodePluginRBAC, err)
} }
createORDeleteRbdResouces("create") createORDeleteRbdResources("create")
} }
func deleteRBDPlugin() { func deleteRBDPlugin() {
createORDeleteRbdResouces("delete") createORDeleteRbdResources("delete")
} }
func createORDeleteRbdResouces(action string) { func createORDeleteRbdResources(action string) {
csiDriver, err := ioutil.ReadFile(rbdDirPath + csiDriverObject) csiDriver, err := ioutil.ReadFile(rbdDirPath + csiDriverObject)
if err != nil { if err != nil {
// createORDeleteRbdResouces is used for upgrade testing as csidriverObject is // createORDeleteRbdResources is used for upgrade testing as csidriverObject is
// newly added, discarding file not found error. // newly added, discarding file not found error.
if !os.IsNotExist(err) { if !os.IsNotExist(err) {
e2elog.Failf("failed to read content from %s with error %v", rbdDirPath+csiDriverObject, err) e2elog.Failf("failed to read content from %s with error %v", rbdDirPath+csiDriverObject, err)
@ -213,7 +213,7 @@ var _ = Describe("RBD", func() {
if CurrentGinkgoTestDescription().Failed { if CurrentGinkgoTestDescription().Failed {
// log pods created by helm chart // log pods created by helm chart
logsCSIPods("app=ceph-csi-rbd", c) logsCSIPods("app=ceph-csi-rbd", c)
// log provisoner // log provisioner
logsCSIPods("app=csi-rbdplugin-provisioner", c) logsCSIPods("app=csi-rbdplugin-provisioner", c)
// log node plugin // log node plugin
logsCSIPods("app=csi-rbdplugin", c) logsCSIPods("app=csi-rbdplugin", c)