From 13fea09f6cd17e14e0e7027886d7aa4dbb67c44a Mon Sep 17 00:00:00 2001 From: sipriyaa Date: Fri, 18 Oct 2024 16:01:58 +0530 Subject: [PATCH] new changes --- tests/e2e/csi_snapshot_basic.go | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/e2e/csi_snapshot_basic.go b/tests/e2e/csi_snapshot_basic.go index 345e62064e..95c27f0429 100644 --- a/tests/e2e/csi_snapshot_basic.go +++ b/tests/e2e/csi_snapshot_basic.go @@ -7668,6 +7668,28 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() { gomega.Expect(err).NotTo(gomega.HaveOccurred()) }) + /* + Password Rotation + + Workflow Path: PVC → Snapshot(vols-1) → Password Rotation → Snapshot(vols-2, vols-3) → RestoreVols + + Steps: + + 1. Create a PVC using the storage class (storage policy) tagged to the supervisor namespace + 2. Wait for PVC to reach the Bound state. + 3. Get VolumeSnapshotClass "volumesnapshotclass-delete" from supervisor cluster + 4. Create a volume snapshot-1 using the above snapshot class (step #3) and PVC (step #1) as a source. + 5. Snapshot Verification: Execute and verify the steps mentioned in the Create snapshot mandatory checks + 6. Perform password rotation on the supervisor cluster. + 7. Create a volume snapshot-2 using the above snapshot class (step #3) and PVC (step #1) as a source. + 8. Snapshot Verification: Execute and verify the steps mentioned in the Create snapshot mandatory checks + 9. Create a volume snapshot-3 using the above snapshot class (step #3) and PVC (step #1) as a source. + 10. Snapshot Verification: Execute and verify the steps mentioned in the Create snapshot mandatory checks + 11. Create PVC from the snapshot created in step #4 + 12. Wait for PVC to reach the Bound state. + 13. Cleanup: Execute and verify the steps mentioned in the Delete snapshot mandatory checks + */ + ginkgo.It("[supervsior-snapshot] Supervisor password rotation during snapshot creation", ginkgo.Label(p1, block, wcp, snapshot, disruptive), func() {