Merge pull request #113454 from ii/promote-namespace-finalizer-test

Promote replaceCoreV1NamespaceFinalize +1 Endpoints
This commit is contained in:
Kubernetes Prow Robot 2022-10-30 18:34:45 -07:00 committed by GitHub
commit a65d76a5b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 1 deletions

View File

@ -384,6 +384,14 @@
MUST cause pods created by that RC to be orphaned.
release: v1.9
file: test/e2e/apimachinery/garbage_collector.go
- testname: Namespace, apply finalizer to a namespace
codename: '[sig-api-machinery] Namespaces [Serial] should apply a finalizer to a
Namespace [Conformance]'
description: Attempt to create a Namespace which MUST be succeed. Updating the namespace
with a fake finalizer MUST succeed. The fake finalizer MUST be found. Removing
the fake finalizer from the namespace MUST succeed and MUST NOT be found.
release: v1.26
file: test/e2e/apimachinery/namespace.go
- testname: Namespace, apply update to a namespace
codename: '[sig-api-machinery] Namespaces [Serial] should apply an update to a Namespace
[Conformance]'

View File

@ -383,7 +383,15 @@ var _ = SIGDescribe("Namespaces [Serial]", func() {
framework.Logf("Namespace %q now has labels, %#v", ns, updatedNamespace.Labels)
})
ginkgo.It("should apply a finalizer to a Namespace", func() {
/*
Release: v1.26
Testname: Namespace, apply finalizer to a namespace
Description: Attempt to create a Namespace which MUST be succeed.
Updating the namespace with a fake finalizer MUST succeed. The
fake finalizer MUST be found. Removing the fake finalizer from
the namespace MUST succeed and MUST NOT be found.
*/
framework.ConformanceIt("should apply a finalizer to a Namespace", func() {
fakeFinalizer := v1.FinalizerName("e2e.example.com/fakeFinalizer")
var updatedNamespace *v1.Namespace