Skip to content

Commit

Permalink
test(snapshot): add snapshot and clone test for raw block
Browse files Browse the repository at this point in the history
Signed-off-by: sinhaashish <[email protected]>
  • Loading branch information
sinhaashish committed Jul 15, 2024
1 parent 1c4a810 commit a3e5716
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/provision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,22 @@ func blockVolCreationTest() {
By("verifying ZFSVolume object", VerifyZFSVolume)
By("verifying ZFSVolume property change", VerifyZFSVolumePropEdit)
By("Deleting application deployment")

createSnapshot(pvcName, snapName)
verifySnapshotCreated(snapName)
createClone(clonePvcName, snapName, scObj.Name)
By("Creating and deploying clone app pod", createDeployVerifyCloneApp)

By("Deleting clone and main application deployment")
deleteAppDeployment(cloneAppName)

deleteAppDeployment(appName)
By("Deleting pvc")
deletePVC(pvcName)
By("Deleting storage class", deleteStorageClass)
}

func volumeCreationTest() {
By("Running volume creation test", fsVolCreationTest)
//By("Running volume creation test", fsVolCreationTest)
By("Running block volume creation test", blockVolCreationTest)
}

0 comments on commit a3e5716

Please sign in to comment.