Skip to content

Commit d015f14

Browse files
committed
removed set storage quota code from the files, keeping infinte storage quota in a wcp namespace
1 parent c1eeb35 commit d015f14

5 files changed

+0
-15
lines changed

tests/e2e/csi_snapshot_basic.go

-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ var _ = ginkgo.Describe("Volume Snapshot Basic Test", func() {
174174
restConfig = getRestConfigClient()
175175
snapc, err = snapclient.NewForConfig(restConfig)
176176
gomega.Expect(err).NotTo(gomega.HaveOccurred())
177-
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
178177
}
179178

180179
var datacenters []string

tests/e2e/csi_snapshot_negative.go

-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
6060
snapc *snapclient.Clientset
6161
serviceName string
6262
pandoraSyncWaitTime int
63-
storagePolicyName string
6463
)
6564

6665
ginkgo.BeforeEach(func() {
@@ -84,16 +83,13 @@ var _ = ginkgo.Describe("[block-snapshot-negative] Volume Snapshot Fault-Injecti
8483
snapc, err = snapclient.NewForConfig(restConfig)
8584
gomega.Expect(err).NotTo(gomega.HaveOccurred())
8685
} else if guestCluster {
87-
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
8886
guestClusterRestConfig = getRestConfigClientForGuestCluster(guestClusterRestConfig)
8987
snapc, err = snapclient.NewForConfig(guestClusterRestConfig)
9088
gomega.Expect(err).NotTo(gomega.HaveOccurred())
9189
} else {
92-
storagePolicyName = GetAndExpectStringEnvVar(envStoragePolicyNameForSharedDatastores)
9390
restConfig = getRestConfigClient()
9491
snapc, err = snapclient.NewForConfig(restConfig)
9592
gomega.Expect(err).NotTo(gomega.HaveOccurred())
96-
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
9793
}
9894

9995
if os.Getenv(envFullSyncWaitTime) != "" {

tests/e2e/snapshot_stretched_supervisor.go

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ var _ = ginkgo.Describe("Stretched-Supervisor-Snapshot", func() {
130130
restConfig = getRestConfigClient()
131131
snapc, err = snapclient.NewForConfig(restConfig)
132132
gomega.Expect(err).NotTo(gomega.HaveOccurred())
133-
setStoragePolicyQuota(ctx, restConfig, zonalPolicy, namespace, rqLimit)
134133

135134
// fetching default datastore
136135
finder := find.NewFinder(e2eVSphere.Client.Client, false)

tests/e2e/snapshot_vmservice_vm.go

-4
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ var _ bool = ginkgo.Describe("[snapshot-vmsvc] Snapshot VM Service VM", func() {
153153
snapc, err = snapclient.NewForConfig(restConfig)
154154
gomega.Expect(err).NotTo(gomega.HaveOccurred())
155155

156-
ginkgo.By("Sleeping for a minute for storage policy to get " +
157-
"refresh and added to namespace")
158-
setStoragePolicyQuota(ctx, restConfig, storageClassName, namespace, rqLimit)
159-
160156
// reading full sync wait time
161157
if os.Getenv(envPandoraSyncWaitTime) != "" {
162158
pandoraSyncWaitTime, err = strconv.Atoi(os.Getenv(envPandoraSyncWaitTime))

tests/e2e/vmservice_vm.go

-5
Original file line numberDiff line numberDiff line change
@@ -1423,11 +1423,6 @@ var _ bool = ginkgo.Describe("[vmsvc] vm service with csi vol tests", func() {
14231423
}
14241424
framework.Logf("storageclass name :%s", storageclass.GetName())
14251425

1426-
ginkgo.By("Sleeping for a minute for storage policy to get " +
1427-
"refresh and added to namespace")
1428-
time.Sleep(1 * time.Minute)
1429-
setStoragePolicyQuota(ctx, restConfig, storagePolicyName, namespace, rqLimit)
1430-
14311426
if isStorageQuotaFSSEnabled {
14321427
totalQuotaUsedBefore, _, storagePolicyQuotaBefore, _, storagePolicyUsageBefore, _ =
14331428
getStoragePolicyUsedAndReservedQuotaDetails(ctx, restConfig,

0 commit comments

Comments
 (0)