e2e/storage: allow empty volume type

This can happen when the test pattern is about snapshotting.
pull/564/head
Patrick Ohly 2019-03-07 16:57:16 +01:00
parent 915d6365f1
commit e84271ed8a
1 changed files with 2 additions and 0 deletions

View File

@ -192,6 +192,8 @@ func (d *driverDefinition) SkipUnsupportedTest(pattern testpatterns.TestPattern)
supported := false
// TODO (?): add support for more volume types
switch pattern.VolType {
case "":
supported = true
case testpatterns.DynamicPV:
if d.StorageClass.FromName || d.StorageClass.FromFile != "" {
supported = true