mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
skip in-tree and default Dynamic Provisioner test when there's no default storage class
This commit is contained in:
parent
3c91436fc1
commit
2298dc612c
@ -147,7 +147,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||||||
timeouts = f.Timeouts
|
timeouts = f.Timeouts
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.Describe("DynamicProvisioner [Slow]", func() {
|
ginkgo.Describe("DynamicProvisioner [Slow] [Feature:StorageProvider]", func() {
|
||||||
ginkgo.It("should provision storage with different parameters", func() {
|
ginkgo.It("should provision storage with different parameters", func() {
|
||||||
|
|
||||||
// This test checks that dynamic provisioning can provision a volume
|
// This test checks that dynamic provisioning can provision a volume
|
||||||
@ -604,6 +604,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||||||
ginkgo.Describe("DynamicProvisioner Default", func() {
|
ginkgo.Describe("DynamicProvisioner Default", func() {
|
||||||
ginkgo.It("should create and delete default persistent volumes [Slow]", func() {
|
ginkgo.It("should create and delete default persistent volumes [Slow]", func() {
|
||||||
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
||||||
|
e2epv.SkipIfNoDefaultStorageClass(c)
|
||||||
|
|
||||||
ginkgo.By("creating a claim with no annotation")
|
ginkgo.By("creating a claim with no annotation")
|
||||||
test := testsuites.StorageClassTest{
|
test := testsuites.StorageClassTest{
|
||||||
@ -629,6 +630,7 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
|
|||||||
// Modifying the default storage class can be disruptive to other tests that depend on it
|
// Modifying the default storage class can be disruptive to other tests that depend on it
|
||||||
ginkgo.It("should be disabled by changing the default annotation [Serial] [Disruptive]", func() {
|
ginkgo.It("should be disabled by changing the default annotation [Serial] [Disruptive]", func() {
|
||||||
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
|
||||||
|
e2epv.SkipIfNoDefaultStorageClass(c)
|
||||||
|
|
||||||
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
scName, scErr := e2epv.GetDefaultStorageClassName(c)
|
||||||
framework.ExpectNoError(scErr)
|
framework.ExpectNoError(scErr)
|
||||||
|
Loading…
Reference in New Issue
Block a user