use LinuxOnly annotation instead of e2eskipper to skip windows tests

This commit is contained in:
Mauricio Poppe 2021-03-31 19:06:22 +00:00
parent 55bed0bb66
commit 1e1252ed8c

View File

@ -316,7 +316,12 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
})
})
ginkgo.Describe("Default StorageClass", func() {
// testsuites/multivolume tests can now run with windows nodes
// This test is not compatible with windows because the default StorageClass
// doesn't have the ntfs parameter, we can't change the status of the cluster
// to add a StorageClass that's compatible with windows which is also the
// default StorageClass
ginkgo.Describe("Default StorageClass [LinuxOnly]", func() {
ginkgo.Context("pods that use multiple volumes", func() {
ginkgo.AfterEach(func() {
@ -326,12 +331,6 @@ var _ = utils.SIGDescribe("PersistentVolumes", func() {
ginkgo.It("should be reschedulable [Slow]", func() {
// Only run on providers with default storageclass
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "gke", "vsphere", "azure")
// testsuites/multivolume tests can now run with windows nodes
// This test is not compatible with windows because the default StorageClass
// doesn't have the ntfs parameter, we can't change the status of the cluster
// to add a StorageClass that's compatible with windows which is also the
// default StorageClass
e2eskipper.SkipIfNodeOSDistroIs("windows")
numVols := 4