mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
e2e: add simple ceph-fuse StorageClass tests
Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
85df59531b
commit
f41cd105c4
@ -234,6 +234,43 @@ var _ = Describe("cephfs", func() {
|
||||
}
|
||||
})
|
||||
|
||||
By("create a storageclass with ceph-fuse and a PVC then bind it to an app", func() {
|
||||
params := map[string]string{
|
||||
"mounter": "fuse",
|
||||
}
|
||||
err := createCephfsStorageClass(f.ClientSet, f, true, params)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to create CephFS storageclass with error %v", err)
|
||||
}
|
||||
err = validatePVCAndAppBinding(pvcPath, appPath, f)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to validate CephFS pvc and application binding with error %v", err)
|
||||
}
|
||||
err = deleteResource(cephfsExamplePath + "storageclass.yaml")
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to delete CephFS storageclass with error %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
By("create a storageclass with ceph-fuse, mount-options and a PVC then bind it to an app", func() {
|
||||
params := map[string]string{
|
||||
"mounter": "fuse",
|
||||
"fuseMountOptions": "debug",
|
||||
}
|
||||
err := createCephfsStorageClass(f.ClientSet, f, true, params)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to create CephFS storageclass with error %v", err)
|
||||
}
|
||||
err = validatePVCAndAppBinding(pvcPath, appPath, f)
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to validate CephFS pvc and application binding with error %v", err)
|
||||
}
|
||||
err = deleteResource(cephfsExamplePath + "storageclass.yaml")
|
||||
if err != nil {
|
||||
e2elog.Failf("failed to delete CephFS storageclass with error %v", err)
|
||||
}
|
||||
})
|
||||
|
||||
By("create a PVC and bind it to an app", func() {
|
||||
err := createCephfsStorageClass(f.ClientSet, f, false, nil)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user