Skip to content

Commit

Permalink
test: add bdd for automated upgrade
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinandan Purkait <[email protected]>
  • Loading branch information
Abhinandan-Purkait committed Feb 18, 2025
1 parent c3370d2 commit 9b7e4db
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/bdd/zfs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -253,3 +253,26 @@ Feature: Validate volume provisioning for fsType zfs, ext4, xfs, btrfs
| ext4 |
| xfs |
| btrfs |

Scenario Outline: Main features should work after upgrade
Given The latest stable version of OpenEBS Local PV ZFS is installed in the cluster
And a storage class is created with fsType as <fsType> and thinprovision as <thinprovision> and allowExpansion as true
And pvc is created referencing this storage class
And a deployment is created using the same pvc
And a volume snapshot is created referencing this storage class
When the OpenEBS Local PV ZFS installed in the cluster is upgraded to target prerelease or develop version
And the pvc capacity is updated to a greater size
Then the pvc resize should work correctly and the filesystem should be updated eventually
When a restore is created from the snapshot
Then the restore should be created successfully and should be consumable by a workload
When a clone is created from the pvc
Then the clone should be created successfully and should be consumable by a workload
And the workloads should keep running until completion
Examples:
| fsType | thinprovision |
| zfs | no |
| xfs | no |
| zfs | yes |
| xfs | yes |
| zfs | |
| xfs | |

0 comments on commit 9b7e4db

Please sign in to comment.