mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: add minimal tests for NFS-provisioner
The tests for the NFS-provisioner can be run by passing -deploy-nfs and -test-nfs as parameters to the `go test` or `e2e.test` command. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
mergify[bot]
parent
085a3bdc73
commit
eb70fb9fd4
@ -1378,6 +1378,16 @@ var _ = Describe("cephfs", func() {
|
||||
validateSubvolumeCount(f, 0, fileSystemName, subvolumegroup)
|
||||
})
|
||||
|
||||
// FIXME: in case NFS testing is done, prevent deletion
|
||||
// of the CephFS filesystem and related pool. This can
|
||||
// probably be addressed in a nicer way, making sure
|
||||
// everything is tested, always.
|
||||
if testNFS {
|
||||
e2elog.Logf("skipping CephFS destructive tests, allow NFS to run")
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
// Make sure this should be last testcase in this file, because
|
||||
// it deletes pool
|
||||
By("Create a PVC and delete PVC when backend pool deleted", func() {
|
||||
|
Reference in New Issue
Block a user