Skip to content

Commit

Permalink
new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sipriyaa committed Aug 22, 2024
1 parent 69a72b4 commit 36ef7e9
Show file tree
Hide file tree
Showing 2 changed files with 433 additions and 38 deletions.
11 changes: 6 additions & 5 deletions tests/e2e/csi_snapshot_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -1317,7 +1317,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
17. Delete SC and VolumeSnapshotClass
*/

ginkgo.It("[block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot] Volume snapshot creation and restoration workflow "+
ginkgo.It("[block-vanilla-snapshot] [tkg-snapshot][supervisor-snapshot] TC16Volume snapshot creation and restoration workflow "+
"with xfs filesystem", ginkgo.Label(p0, block, vanilla, tkg, snapshot, stable), func() {

ctx, cancel := context.WithCancel(context.Background())
Expand Down Expand Up @@ -1476,6 +1476,7 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
xfsFSType, time.Minute)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

time.Sleep(2 * time.Minute)
// Ensure that file1.txt is available as expected on the restored PVC
ginkgo.By("Verify that file1.txt data is available as part of snapshot")
output := readFileFromPod(namespace, pod2.Name, filePath1)
Expand Down Expand Up @@ -3299,10 +3300,10 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
storageclass, err := createStorageClass(client, scParameters, nil, "", "", true, scName)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

var allowExpansion = true
storageclass.AllowVolumeExpansion = &allowExpansion
storageclass, err = client.StorageV1().StorageClasses().Update(ctx, storageclass, metav1.UpdateOptions{})
gomega.Expect(err).NotTo(gomega.HaveOccurred())
// var allowExpansion = true
// storageclass.AllowVolumeExpansion = &allowExpansion
// storageclass, err = client.StorageV1().StorageClasses().Update(ctx, storageclass, metav1.UpdateOptions{})
// gomega.Expect(err).NotTo(gomega.HaveOccurred())

defer func() {
if vanillaCluster {
Expand Down
Loading

0 comments on commit 36ef7e9

Please sign in to comment.