e2e: Feature flag RBD fscrypt tests (default disabled)

Add test-rbd-fscrypt feature flag to e2e suite. Default disabled as
the current CI system's kernel doesn't have the required features
enabled.

Signed-off-by: Marcel Lauhoff <marcel.lauhoff@suse.com>
This commit is contained in:
Marcel Lauhoff
2022-10-14 19:01:47 +02:00
committed by mergify[bot]
parent 5a55419025
commit 69b8feec12
3 changed files with 7 additions and 0 deletions

View File

@ -241,6 +241,11 @@ func ByFileAndBlockEncryption(
callback(validateEncryptedPVCAndAppBinding, isBlockEncryptedPVC, util.EncryptionTypeBlock)
})
By(text+" (file)", func() {
if !testRBDFSCrypt {
e2elog.Logf("skipping RBD fscrypt file encryption test")
return
}
callback(validateEncryptedFilesystemAndAppBinding, isFileEncryptedPVC, util.EncryptionTypeFile)
})
}