Skip to content

Commit

Permalink
Remove unnecessary snapshot ability check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiawei0227 authored and jingxu97 committed Jun 4, 2021
1 parent bd3ce3a commit 067c3e7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions test/e2e/storage/external/external.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,18 +247,6 @@ func (d *driverDefinition) SkipUnsupportedTest(pattern testpatterns.TestPattern)
e2eskipper.Skipf("Driver %q does not support volume type %q - skipping", d.DriverInfo.Name, pattern.VolType)
}

supported = false
switch pattern.SnapshotType {
case "":
supported = true
case testpatterns.DynamicCreatedSnapshot, testpatterns.PreprovisionedCreatedSnapshot:
if d.SnapshotClass.FromName || d.SnapshotClass.FromFile != "" || d.SnapshotClass.FromExistingClassName != "" {
supported = true
}
}
if !supported {
e2eskipper.Skipf("Driver %q does not support snapshot type %q - skipping", d.DriverInfo.Name, pattern.SnapshotType)
}
}

func (d *driverDefinition) GetDynamicProvisionStorageClass(e2econfig *testsuites.PerTestConfig, fsType string) *storagev1.StorageClass {
Expand Down

0 comments on commit 067c3e7

Please sign in to comment.