e2e: test for PVC with volumeBindingMode on helm installation

Test PVC binding with WaitForFirstConsumer in Helm installation.

Signed-off-by: ShravaniVangur <shravanivangur@gmail.com>
This commit is contained in:
ShravaniVangur
2025-03-27 22:35:29 +05:30
committed by mergify[bot]
parent 3fa030ead1
commit c19f47226e
4 changed files with 99 additions and 4 deletions

View File

@ -360,6 +360,26 @@ var _ = Describe(cephfsType, func() {
})
}
By("verify PVC and App Binding with volumeBindingMode:WaitForFirstConsumer", func() {
err := createCephfsStorageClassWaitForFirstConsumer(f.ClientSet, f, true, nil)
if err != nil {
framework.Failf("failed to create CephFS storageclass: %v", err)
}
err = validatePVCAndAppWaitForFirstConsumer(pvcPath, appPath, f)
if err != nil {
framework.Failf("failed to validate CephFS pvc and application binding: %v", err)
}
validateSubvolumeCount(f, 0, fileSystemName, subvolumegroup)
validateOmapCount(f, 0, cephfsType, metadataPool, volumesType)
err = deleteResource(cephFSExamplePath + "storageclass.yaml")
if err != nil {
framework.Failf("failed to delete CephFS storageclass: %v", err)
}
})
By("verify mountOptions support", func() {
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
if err != nil {