mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
skip tests that uses default storage class when there is no default storage class installed
This commit is contained in:
parent
1367cca8fd
commit
496ccc06ad
@ -70,6 +70,7 @@ var _ = utils.SIGDescribe("GenericPersistentVolume[Disruptive]", func() {
|
||||
pv *v1.PersistentVolume
|
||||
)
|
||||
ginkgo.BeforeEach(func() {
|
||||
e2epv.SkipIfNoDefaultStorageClass(c)
|
||||
framework.Logf("Initializing pod and pvcs for test")
|
||||
clientPod, pvc, pv = createPodPVCFromSC(f, c, ns)
|
||||
})
|
||||
|
@ -65,6 +65,7 @@ var _ = utils.SIGDescribe("[Serial] Volume metrics", func() {
|
||||
// and the underlying storage driver and therefore don't pass
|
||||
// with other kinds of clusters and drivers.
|
||||
e2eskipper.SkipUnlessProviderIs("gce", "gke", "aws")
|
||||
e2epv.SkipIfNoDefaultStorageClass(c)
|
||||
defaultScName, err = e2epv.GetDefaultStorageClassName(c)
|
||||
framework.ExpectNoError(err)
|
||||
|
||||
|
@ -669,6 +669,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
||||
// Modifying the default storage class can be disruptive to other tests that depend on it
|
||||
ginkgo.It("should be disabled by removing the default annotation [Serial] [Disruptive]", func() {
|
||||
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
||||
e2epv.SkipIfNoDefaultStorageClass(c)
|
||||
|
||||
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
||||
framework.ExpectNoError(scErr)
|
||||
|
Loading…
Reference in New Issue
Block a user