Skip to content

Commit

Permalink
Merge pull request kubevirt#2094 from dollierp/storage-class-local
Browse files Browse the repository at this point in the history
tests: replace remaining occurrence of "local" by StorageClassLocal
  • Loading branch information
rmohr authored Mar 7, 2019
2 parents 6ae065a + 8534d64 commit f6b61ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/imageupload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions tests/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand All @@ -1233,7 +1233,7 @@ func NewRandomDataVolumeWithHttpImport(imageUrl string, namespace string) *cdiv1
"storage": quantity,
},
},
StorageClassName: &storageClassName,
StorageClassName: &storageClass,
},
},
}
Expand Down

0 comments on commit f6b61ee

Please sign in to comment.