mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 22:30:23 +00:00
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:
parent
819267112e
commit
85e1e0370a
33
e2e/rbd.go
33
e2e/rbd.go
@ -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+
|
||||||
|
Loading…
Reference in New Issue
Block a user