mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
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:
committed by
mergify[bot]
parent
3fa030ead1
commit
c19f47226e
@ -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 {
|
||||
|
Reference in New Issue
Block a user