e2e/storage: allow empty volume type

This can happen when the test pattern is about snapshotting.
This commit is contained in:
Patrick Ohly 2019-03-07 16:57:16 +01:00
parent 915d6365f1
commit e84271ed8a

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