Use WFFC storage class in image upload tests
Skip force-bind tests if no local WFFC storage is available.
@@ -201,6 +201,9 @@ var _ = SIGDescribe("[Serial]ImageUpload", func() {
Context("Create upload volume with force-bind flag", func() {
DescribeTable("Should succeed", func(resource, targetName string, validateFunc func(string), deleteFunc func(string)) {
+ if !tests.HasBindingModeWaitForFirstConsumer() {
+ Skip("Skip no local wffc storage class available")
+ }
defer deleteFunc(targetName)
By("Upload image")
@@ -209,8 +212,9 @@ var _ = SIGDescribe("[Serial]ImageUpload", func() {
"--namespace", util.NamespaceTestDefault,
"--image-path", imagePath,
"--size", pvcSize,
+ "--storage-class", tests.Config.StorageClassLocal,
+ "--access-mode", "ReadWriteOnce",
"--force-bind",
- "--block-volume",
"--insecure")
Expect(virtctlCmd()).To(Succeed())
