mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
e2e: remove 1.17 based test enablement in cephfs
Considering we are far out of these release and only care about kubernetes releases from v1.20, there is no need to have this version check in place for the tests. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
2ac3f129c0
commit
7090a18141
@ -659,8 +659,6 @@ var _ = Describe("cephfs", func() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
By("Delete snapshot after deleting subvolume and snapshot from backend", func() {
|
By("Delete snapshot after deleting subvolume and snapshot from backend", func() {
|
||||||
// snapshot beta is only supported from v1.17+
|
|
||||||
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
|
|
||||||
err := createCephFSSnapshotClass(f)
|
err := createCephFSSnapshotClass(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
|
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
|
||||||
@ -712,7 +710,6 @@ var _ = Describe("cephfs", func() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
|
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
By("Test snapshot retention feature", func() {
|
By("Test snapshot retention feature", func() {
|
||||||
@ -720,8 +717,7 @@ var _ = Describe("cephfs", func() {
|
|||||||
// this should work because of the snapshot
|
// this should work because of the snapshot
|
||||||
// retention feature. Restore a PVC from that
|
// retention feature. Restore a PVC from that
|
||||||
// snapshot.
|
// snapshot.
|
||||||
// snapshot beta is only supported from v1.17+
|
|
||||||
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
|
|
||||||
err := createCephFSSnapshotClass(f)
|
err := createCephFSSnapshotClass(f)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
|
e2elog.Failf("failed to create CephFS snapshotclass with error %v", err)
|
||||||
@ -791,12 +787,9 @@ var _ = Describe("cephfs", func() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
|
e2elog.Failf("failed to delete CephFS snapshotclass with error %v", err)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
By("create a PVC clone and bind it to an app", func() {
|
By("create a PVC clone and bind it to an app", func() {
|
||||||
// snapshot beta is only supported from v1.17+
|
|
||||||
if k8sVersionGreaterEquals(f.ClientSet, 1, 17) {
|
|
||||||
var wg sync.WaitGroup
|
var wg sync.WaitGroup
|
||||||
totalCount := 3
|
totalCount := 3
|
||||||
wgErrs := make([]error, totalCount)
|
wgErrs := make([]error, totalCount)
|
||||||
@ -1014,7 +1007,6 @@ var _ = Describe("cephfs", func() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
validateSubvolumeCount(f, 0, fileSystemName, subvolumegroup)
|
validateSubvolumeCount(f, 0, fileSystemName, subvolumegroup)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
By("create a PVC-PVC clone and bind it to an app", func() {
|
By("create a PVC-PVC clone and bind it to an app", func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user