Skip to content

Commit

Permalink
removed set storage quota code from the files, keeping infinte storag…
Browse files Browse the repository at this point in the history
…e quota in a wcp namespace
  • Loading branch information
sipriyaa committed Mar 4, 2025
1 parent c1eeb35 commit d015f14
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion tests/e2e/csi_snapshot_basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
}

var datacenters []string
Expand Down
4 changes: 0 additions & 4 deletions tests/e2e/csi_snapshot_negative.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
snapc *snapclient.Clientset
serviceName string
pandoraSyncWaitTime int
storagePolicyName string
)

ginkgo.BeforeEach(func() {
Expand All @@ -84,16 +83,13 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
} else if guestCluster {
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
guestClusterRestConfig = getRestConfigClientForGuestCluster(guestClusterRestConfig)
snapc, err = snapclient.NewForConfig(guestClusterRestConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
} else {
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
}

if os.Getenv(envFullSyncWaitTime) != "" {
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/snapshot_stretched_supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ var _ = ginkgo.Describe("Stretched-Supervisor-Snapshot", func() {
restConfig = getRestConfigClient()
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())
setStoragePolicyQuota(ctx, restConfig, zonalPolicy, namespace, rqLimit)

// fetching default datastore
finder := find.NewFinder(e2eVSphere.Client.Client, false)
Expand Down
4 changes: 0 additions & 4 deletions tests/e2e/snapshot_vmservice_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ var _ bool = ginkgo.Describe("[snapshot-vmsvc] Snapshot VM Service VM", func() {
snapc, err = snapclient.NewForConfig(restConfig)
gomega.Expect(err).NotTo(gomega.HaveOccurred())

ginkgo.By("Sleeping for a minute for storage policy to get " +
"refresh and added to namespace")
setStoragePolicyQuota(ctx, restConfig, storageClassName, namespace, rqLimit)

// reading full sync wait time
if os.Getenv(envPandoraSyncWaitTime) != "" {
pandoraSyncWaitTime, err = strconv.Atoi(os.Getenv(envPandoraSyncWaitTime))
Expand Down
5 changes: 0 additions & 5 deletions tests/e2e/vmservice_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1423,11 +1423,6 @@ var _ bool = ginkgo.Describe("[vmsvc] vm service with csi vol tests", func() {
}
framework.Logf("storageclass name :%s", storageclass.GetName())

ginkgo.By("Sleeping for a minute for storage policy to get " +
"refresh and added to namespace")
time.Sleep(1 * time.Minute)
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)

if isStorageQuotaFSSEnabled {
totalQuotaUsedBefore, _, storagePolicyQuotaBefore, _, storagePolicyUsageBefore, _ =
getStoragePolicyUsedAndReservedQuotaDetails(ctx, restConfig,
Expand Down

0 comments on commit d015f14

Please sign in to comment.