e2e: enable an old testcase as the ndb module is available

This testcase tests journaling/exclusive-lock image-features with
rbd-nbd mounter

Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
Prasanna Kumar Kalever 2021-05-03 13:34:46 +05:30 committed by mergify[bot]
parent 819267112e
commit 85e1e0370a

View File

@ -727,17 +727,28 @@ var _ = Describe("RBD", func() {
} }
}) })
// TODO: enable this test when we support rbd-nbd mounter in E2E. By("create a PVC and Bind it to an app with journaling/exclusive-lock image-features and rbd-nbd mounter", func() {
// nbd module should be present on the host machine to run use the err := deleteResource(rbdExamplePath + "storageclass.yaml")
// rbd-nbd mounter. if err != nil {
e2elog.Failf("failed to delete storageclass with error %v", err)
// By("create a PVC and Bind it to an app with journaling/exclusive-lock image-features and rbd-nbd mounter", func() { }
// deleteResource(rbdExamplePath + "storageclass.yaml") err = createRBDStorageClass(f.ClientSet, f, nil, map[string]string{"imageFeatures": "layering,journaling,exclusive-lock", "mounter": "rbd-nbd"}, deletePolicy)
// createRBDStorageClass(f.ClientSet, f, nil, map[string]string{"imageFeatures": "layering,journaling,exclusive-lock", "mounter": "rbd-nbd"}) if err != nil {
// validatePVCAndAppBinding(pvcPath, appPath, f) e2elog.Failf("failed to create storageclass with error %v", err)
// deleteResource(rbdExamplePath + "storageclass.yaml") }
// createRBDStorageClass(f.ClientSet, f, nil, make(map[string]string)) err = validatePVCAndAppBinding(pvcPath, appPath, f)
// }) if err != nil {
e2elog.Failf("failed to validate pvc and application binding with error %v", err)
}
err = deleteResource(rbdExamplePath + "storageclass.yaml")
if err != nil {
e2elog.Failf("failed to delete storageclass with error %v", err)
}
err = createRBDStorageClass(f.ClientSet, f, nil, nil, deletePolicy)
if err != nil {
e2elog.Failf("failed to create storageclass with error %v", err)
}
})
By("create a PVC clone and bind it to an app", func() { By("create a PVC clone and bind it to an app", func() {
// snapshot beta is only supported from v1.17+ // snapshot beta is only supported from v1.17+