From 8534d64b64a658aea161a243443bb44f71696edb Mon Sep 17 00:00:00 2001 From: Denis Ollier Date: Wed, 6 Mar 2019 17:13:05 +0100 Subject: [PATCH] tests: replace remaining occurrence of "local" by StorageClassLocal Also use this opportunity to replace the last occurrence of variable name by be consistent with other functions. Signed-off-by: Denis Ollier --- tests/imageupload_test.go | 2 +- tests/utils.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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, }, }, }