Add capability for tests with multiple PVs with the same VolumeHandle

Some CSI drivers do not like multiple PVs with the same VolumeHandle,
therefore make that tests optional.
This commit is contained in:
Jan Safranek
2022-10-13 14:51:47 +02:00
parent 83415e5c9e
commit bda42b6b53
4 changed files with 88 additions and 57 deletions

View File

@@ -530,6 +530,10 @@ func (p *provisioningTestSuite) DefineTests(driver storageframework.TestDriver,
e2eskipper.Skipf("skipping multiple PV mount test for block mode")
}
if !dInfo.Capabilities[storageframework.CapMultiplePVsSameID] {
e2eskipper.Skipf("this driver does not support multiple PVs with the same volumeHandle")
}
init()
defer cleanup()