Skip spec.volumes mount/map test if no SSH

This commit is contained in:
Matthew Wong 2019-08-21 16:39:49 -07:00
parent 1a53325550
commit a81ca7ec5f

View File

@ -321,6 +321,8 @@ func (t *volumeModeTestSuite) defineTests(driver TestDriver, pattern testpattern
}) })
ginkgo.It("should not mount / map unused volumes in a pod", func() { ginkgo.It("should not mount / map unused volumes in a pod", func() {
framework.SkipUnlessProviderIs(framework.ProvidersWithSSH...)
framework.SkipUnlessSSHKeyPresent()
if pattern.VolMode == v1.PersistentVolumeBlock { if pattern.VolMode == v1.PersistentVolumeBlock {
skipBlockTest(driver) skipBlockTest(driver)
} }