diff --git a/tests/imageupload_test.go b/tests/imageupload_test.go index fd3ecc9d4d59..96f5890b292d 100644 --- a/tests/imageupload_test.go +++ b/tests/imageupload_test.go @@ -59,7 +59,7 @@ var _ = Describe("ImageUpload", func() { "--pvc-size", pvcSize, "--uploadproxy-url", fmt.Sprintf("https://127.0.0.1:%d", localUploadProxyPort), "--wait-secs", "30", - "--storage-class", "local", + "--storage-class", tests.StorageClassLocal, "--insecure") err = virtctlCmd() if err != nil { diff --git a/tests/utils.go b/tests/utils.go index 08fbff4f5f21..e4ccb74c992c 100644 --- a/tests/utils.go +++ b/tests/utils.go @@ -1212,7 +1212,7 @@ func PanicOnError(err error) { func NewRandomDataVolumeWithHttpImport(imageUrl string, namespace string) *cdiv1.DataVolume { name := "test-datavolume-" + rand.String(12) - storageClassName := "local" + storageClass := StorageClassLocal quantity, err := resource.ParseQuantity("2Gi") PanicOnError(err) dataVolume := &cdiv1.DataVolume{ @@ -1233,7 +1233,7 @@ func NewRandomDataVolumeWithHttpImport(imageUrl string, namespace string) *cdiv1 "storage": quantity, }, }, - StorageClassName: &storageClassName, + StorageClassName: &storageClass, }, }, }