mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: add test for validation of kernelMountOption
Signed-off-by: riya-singhal31 <rsinghal@redhat.com>
This commit is contained in:
parent
330995751a
commit
a7d259a334
@ -357,6 +357,26 @@ var _ = Describe(cephfsType, func() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
By("validate kernelMountOptions", func() {
|
||||||
|
params := map[string]string{
|
||||||
|
"mounter": "kernel",
|
||||||
|
"kernelMountOptions": "nocrc",
|
||||||
|
}
|
||||||
|
err := createCephfsStorageClass(f.ClientSet, f, true, params)
|
||||||
|
if err != nil {
|
||||||
|
framework.Failf("failed to create CephFS storageclass: %v", err)
|
||||||
|
}
|
||||||
|
mountFlags := []string{"nocrc"}
|
||||||
|
err = checkMountOptions(pvcPath, appPath, f, mountFlags)
|
||||||
|
if err != nil {
|
||||||
|
framework.Failf("failed to validate kernel mount options: %v", err)
|
||||||
|
}
|
||||||
|
err = deleteResource(cephFSExamplePath + "storageclass.yaml")
|
||||||
|
if err != nil {
|
||||||
|
framework.Failf("failed to delete CephFS storageclass: %v", err)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
By("verify generic ephemeral volume support", func() {
|
By("verify generic ephemeral volume support", func() {
|
||||||
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
|
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user