From c5517109b9889553760ecc09208154f0a92c2239 Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Fri, 29 Jul 2022 11:54:47 +1200 Subject: [PATCH] Promote namespace status e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 9 +++++++++ test/e2e/apimachinery/namespace.go | 10 +++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 5240c9b1a14..345c684d545 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -382,6 +382,15 @@ MUST cause pods created by that RC to be orphaned. release: v1.9 file: test/e2e/apimachinery/garbage_collector.go +- testname: Namespace, apply changes to a namespace status + codename: '[sig-api-machinery] Namespaces [Serial] should apply changes to a namespace + status [Conformance]' + description: Getting the current namespace status MUST succeed. The reported status + phase MUST be active. Given the patching of the namespace status, the fields MUST + equal the new values. Given the updating of the namespace status, the fields MUST + equal the new values. + release: v1.25 + file: test/e2e/apimachinery/namespace.go - testname: namespace-deletion-removes-pods codename: '[sig-api-machinery] Namespaces [Serial] should ensure that all pods are removed when a namespace is deleted [Conformance]' diff --git a/test/e2e/apimachinery/namespace.go b/test/e2e/apimachinery/namespace.go index 07c677e39e3..76ab40bd25b 100644 --- a/test/e2e/apimachinery/namespace.go +++ b/test/e2e/apimachinery/namespace.go @@ -287,7 +287,15 @@ var _ = SIGDescribe("Namespaces [Serial]", func() { framework.ExpectEqual(namespace.ObjectMeta.Labels["testLabel"], "testValue", "namespace not patched") }) - ginkgo.It("should apply changes to a namespace status", func() { + /* + Release: v1.25 + Testname: Namespace, apply changes to a namespace status + Description: Getting the current namespace status MUST succeed. The reported status + phase MUST be active. Given the patching of the namespace status, the fields MUST + equal the new values. Given the updating of the namespace status, the fields MUST + equal the new values. + */ + framework.ConformanceIt("should apply changes to a namespace status", func() { ns := f.Namespace.Name dc := f.DynamicClient nsResource := v1.SchemeGroupVersion.WithResource("namespaces")