From 3d3222bfcadd47dfffb634a87e1b4881dafe3273 Mon Sep 17 00:00:00 2001 From: kerthcet Date: Sat, 9 Jul 2022 22:29:59 +0800 Subject: [PATCH] Cleanup: remove no longer suitable tests in scheduler_test.go Signed-off-by: kerthcet --- test/integration/scheduler/scheduler_test.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/test/integration/scheduler/scheduler_test.go b/test/integration/scheduler/scheduler_test.go index 3403518914..2a4c771fbe 100644 --- a/test/integration/scheduler/scheduler_test.go +++ b/test/integration/scheduler/scheduler_test.go @@ -520,26 +520,6 @@ var _ = ginkgo.Describe("Scheduler", func() { gomega.Expect(k8sClient.Create(ctx, fooFlavor)).Should(gomega.Succeed()) framework.ExpectWorkloadsToBeAdmitted(ctx, k8sClient, fooCq.Name, wl) }) - - ginkgo.It("Should be inactive when corresponding flavors deleted", func() { - ginkgo.By("Creating foo flavors") - fooFlavor := testing.MakeResourceFlavor("foo-flavor").Obj() - gomega.Expect(k8sClient.Create(ctx, fooFlavor)).Should(gomega.Succeed()) - - ginkgo.By("Creating one workload") - wl1 := testing.MakeWorkload("workload", ns.Name).Queue(fooQ.Name).Request(corev1.ResourceCPU, "1").Obj() - gomega.Expect(k8sClient.Create(ctx, wl1)).Should(gomega.Succeed()) - framework.ExpectWorkloadsToBeAdmitted(ctx, k8sClient, fooCq.Name, wl1) - - ginkgo.By("Deleting clusterQueue and foo flavors") - gomega.Expect(framework.DeleteClusterQueue(ctx, k8sClient, fooCq)).To(gomega.Succeed()) - gomega.Expect(framework.DeleteResourceFlavor(ctx, k8sClient, fooFlavor)).To(gomega.Succeed()) - - ginkgo.By("Creating another workloads") - wl2 := testing.MakeWorkload("wl-2", ns.Name).Queue(fooQ.Name).Request(corev1.ResourceCPU, "1").Obj() - gomega.Expect(k8sClient.Create(ctx, wl2)).Should(gomega.Succeed()) - gomega.Expect(wl2.Status.Conditions).Should(gomega.BeEmpty()) - }) }) ginkgo.When("Using taints in resourceFlavors", func() {