From bf22ad1a15917d3727b726436db86c0979c3c34f Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Mon, 10 Oct 2022 11:37:57 +1300 Subject: [PATCH] Promote limitRange e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 10 ++++++++++ test/e2e/scheduling/limit_range.go | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 7044cb37163..1f721352e69 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -2393,6 +2393,16 @@ validate the pod resources are applied to the Limitrange release: v1.18 file: test/e2e/scheduling/limit_range.go +- testname: LimitRange, list, patch and delete a LimitRange by collection + codename: '[sig-scheduling] LimitRange should list, patch and delete a LimitRange + by collection [Conformance]' + description: When two limitRanges are created in different namespaces, both MUST + succeed. Listing limitRanges across all namespaces with a labelSelector MUST find + both limitRanges. When patching the first limitRange it MUST succeed and the fields + MUST equal the new values. When deleting the limitRange by collection with a labelSelector + it MUST delete only one limitRange. + release: v1.26 + file: test/e2e/scheduling/limit_range.go - testname: Scheduler, resource limits codename: '[sig-scheduling] SchedulerPredicates [Serial] validates resource limits of pods that are allowed to run [Conformance]' diff --git a/test/e2e/scheduling/limit_range.go b/test/e2e/scheduling/limit_range.go index e6580a11ff7..f65c176451e 100644 --- a/test/e2e/scheduling/limit_range.go +++ b/test/e2e/scheduling/limit_range.go @@ -226,7 +226,17 @@ var _ = SIGDescribe("LimitRange", func() { framework.ExpectNoError(err) }) - ginkgo.It("should list, patch and delete a LimitRange by collection", func() { + /* + Release: v1.26 + Testname: LimitRange, list, patch and delete a LimitRange by collection + Description: When two limitRanges are created in different namespaces, + both MUST succeed. Listing limitRanges across all namespaces with a + labelSelector MUST find both limitRanges. When patching the first limitRange + it MUST succeed and the fields MUST equal the new values. When deleting + the limitRange by collection with a labelSelector it MUST delete only one + limitRange. + */ + framework.ConformanceIt("should list, patch and delete a LimitRange by collection", func() { ns := f.Namespace.Name lrClient := f.ClientSet.CoreV1().LimitRanges(ns)