Skip to content

Commit

Permalink
rbd: extending prefix test to mount the app to pvc
Browse files Browse the repository at this point in the history
Signed-off-by: riya-singhal31 <[email protected]>
  • Loading branch information
riya-singhal31 committed Aug 3, 2023
1 parent 47af7de commit 73ba6f3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions e2e/rbd.go
Original file line number Diff line number Diff line change
Expand Up @@ -2833,14 +2833,9 @@ var _ = Describe("RBD", func() {
framework.Failf("failed to create storageclass: %v", err)
}
// set up PVC
pvc, err := loadPVC(pvcPath)
if err != nil {
framework.Failf("failed to load PVC: %v", err)
}
pvc.Namespace = f.UniqueName
err = createPVCAndvalidatePV(f.ClientSet, pvc, deployTimeout)
pvc, app, err := createPVCAndAppBinding(pvcPath, appPath, f, 0)
if err != nil {
framework.Failf("failed to create PVC: %v", err)
framework.Failf("failed to create PVC and application: %v", err)
}

// validate created backend rbd images
Expand All @@ -2862,9 +2857,9 @@ var _ = Describe("RBD", func() {
}

// clean up after ourselves
err = deletePVCAndValidatePV(f.ClientSet, pvc, deployTimeout)
err = deletePVCAndApp("", f, pvc, app)
if err != nil {
framework.Failf("failed to delete PVC: %v", err)
framework.Failf("failed to delete PVC and application: %v", err)
}
// validate created backend rbd images
validateRBDImageCount(f, 0, defaultRBDPool)
Expand Down

0 comments on commit 73ba6f3

Please sign in to comment.