mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
e2e: run generic ephemeral for kubernetes 1.21+
Currently, we are skipping the generic ephemeral testing if the kubernetes version is less than 1.21 because of this one the who test suite is getting skipped and e2e is marked as success in 2 minutes. This commit runs the ephemeral tests if the kube=>1.21+. If we do this, for the lower version we can run other tests. Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
parent
73ecf06f97
commit
d943fbd265
@ -315,9 +315,7 @@ var _ = Describe("cephfs", func() {
|
|||||||
}
|
}
|
||||||
By("verify generic ephemeral volume support", func() {
|
By("verify generic ephemeral volume support", func() {
|
||||||
// generic ephemeral volume support is beta since v1.21.
|
// generic ephemeral volume support is beta since v1.21.
|
||||||
if !k8sVersionGreaterEquals(f.ClientSet, 1, 21) {
|
if k8sVersionGreaterEquals(f.ClientSet, 1, 21) {
|
||||||
Skip("generic ephemeral volume only supported from v1.21+")
|
|
||||||
}
|
|
||||||
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
|
err := createCephfsStorageClass(f.ClientSet, f, true, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to create CephFS storageclass: %v", err)
|
e2elog.Failf("failed to create CephFS storageclass: %v", err)
|
||||||
@ -343,6 +341,7 @@ var _ = Describe("cephfs", func() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to delete CephFS storageclass: %v", err)
|
e2elog.Failf("failed to delete CephFS storageclass: %v", err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
By("check static PVC", func() {
|
By("check static PVC", func() {
|
||||||
|
@ -373,9 +373,7 @@ var _ = Describe("RBD", func() {
|
|||||||
}
|
}
|
||||||
By("verify generic ephemeral volume support", func() {
|
By("verify generic ephemeral volume support", func() {
|
||||||
// generic ephemeral volume support is supported from 1.21
|
// generic ephemeral volume support is supported from 1.21
|
||||||
if !k8sVersionGreaterEquals(f.ClientSet, 1, 21) {
|
if k8sVersionGreaterEquals(f.ClientSet, 1, 21) {
|
||||||
Skip("generic ephemeral volume only supported from v1.21+")
|
|
||||||
}
|
|
||||||
// create application
|
// create application
|
||||||
app, err := loadApp(appEphemeralPath)
|
app, err := loadApp(appEphemeralPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -399,6 +397,7 @@ var _ = Describe("RBD", func() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to validate rbd images in pool %s trash: %v", defaultRBDPool, err)
|
e2elog.Failf("failed to validate rbd images in pool %s trash: %v", defaultRBDPool, err)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: may be remove the below deletion test later once the migration nodestage tests are adjusted
|
// todo: may be remove the below deletion test later once the migration nodestage tests are adjusted
|
||||||
|
Loading…
Reference in New Issue
Block a user