Skip to content

Commit c35e92f

Browse files
author
Jiaxun Song
committed
fix: optimize test object creation
1 parent 35d3a11 commit c35e92f

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

test/e2e/dynamic_provisioning_test.go

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,7 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
137137
StorageClassParameters: map[string]string{"skuName": "Standard_GRS"},
138138
}
139139
if isAzureStackCloud {
140-
test = testsuites.DynamicallyProvisionedReadOnlyVolumeTest{
141-
CSIDriver: testDriver,
142-
Pods: pods,
143-
StorageClassParameters: map[string]string{"skuName": "Standard_LRS"},
144-
}
140+
test.StorageClassParameters = map[string]string{"skuName": "Standard_LRS"}
145141
}
146142
test.Run(cs, ns)
147143
})
@@ -182,12 +178,7 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
182178
StorageClassParameters: map[string]string{"skuName": "Standard_RAGRS"},
183179
}
184180
if isAzureStackCloud {
185-
test = testsuites.DynamicallyProvisionedCollocatedPodTest{
186-
CSIDriver: testDriver,
187-
Pods: pods,
188-
ColocatePods: true,
189-
StorageClassParameters: map[string]string{"skuName": "Standard_LRS"},
190-
}
181+
test.StorageClassParameters = map[string]string{"skuName": "Standard_LRS"}
191182
}
192183
test.Run(cs, ns)
193184
})
@@ -225,12 +216,7 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
225216
StorageClassParameters: map[string]string{"skuName": "Standard_GRS"},
226217
}
227218
if isAzureStackCloud {
228-
test = testsuites.DynamicallyProvisionedReclaimPolicyTest{
229-
CSIDriver: testDriver,
230-
Volumes: volumes,
231-
Driver: blobDriver,
232-
StorageClassParameters: map[string]string{"skuName": "Standard_LRS"},
233-
}
219+
test.StorageClassParameters = map[string]string{"skuName": "Standard_LRS"}
234220
}
235221
test.Run(cs, ns)
236222
})

0 commit comments

Comments
 (0)