Promote namespace status e2e test to Conformance

This commit is contained in:
Stephen Heywood 2022-07-29 11:54:47 +12:00
parent e5a649d4f6
commit c5517109b9
2 changed files with 18 additions and 1 deletions

View File

@ -382,6 +382,15 @@
MUST cause pods created by that RC to be orphaned. MUST cause pods created by that RC to be orphaned.
release: v1.9 release: v1.9
file: test/e2e/apimachinery/garbage_collector.go 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 - testname: namespace-deletion-removes-pods
codename: '[sig-api-machinery] Namespaces [Serial] should ensure that all pods are codename: '[sig-api-machinery] Namespaces [Serial] should ensure that all pods are
removed when a namespace is deleted [Conformance]' removed when a namespace is deleted [Conformance]'

View File

@ -287,7 +287,15 @@ var _ = SIGDescribe("Namespaces [Serial]", func() {
framework.ExpectEqual(namespace.ObjectMeta.Labels["testLabel"], "testValue", "namespace not patched") 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 ns := f.Namespace.Name
dc := f.DynamicClient dc := f.DynamicClient
nsResource := v1.SchemeGroupVersion.WithResource("namespaces") nsResource := v1.SchemeGroupVersion.WithResource("namespaces")