mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
e2e: add e2e to test static pvc
added e2e test case to verify static pvc with and without fsName in the PV object. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
1d17600401
commit
e008e16095
@ -323,7 +323,7 @@ func validateRBDStaticMigrationPVC(f *framework.Framework, appPath, scName strin
|
||||
}
|
||||
|
||||
//nolint:gocyclo,cyclop // reduce complexity
|
||||
func validateCephFsStaticPV(f *framework.Framework, appPath, scPath string) error {
|
||||
func validateCephFsStaticPV(f *framework.Framework, appPath, scPath, fsName string) error {
|
||||
opt := make(map[string]string)
|
||||
var (
|
||||
cephFsVolName = "testSubVol"
|
||||
@ -406,7 +406,9 @@ func validateCephFsStaticPV(f *framework.Framework, appPath, scPath string) erro
|
||||
}
|
||||
|
||||
opt["clusterID"] = fsID
|
||||
opt["fsName"] = fileSystemName
|
||||
if fsName != "" {
|
||||
opt["fsName"] = fsName
|
||||
}
|
||||
opt["staticVolume"] = strconv.FormatBool(true)
|
||||
opt["rootPath"] = rootPath
|
||||
pv := getStaticPV(
|
||||
|
Reference in New Issue
Block a user