From 5597b0c4fb2b010fdd6d5b859deeebbb5a265333 Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Wed, 2 Mar 2022 10:33:02 +1300 Subject: [PATCH] Promote replace podtemplate e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 7 +++++++ test/e2e/common/node/podtemplates.go | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index a0dd5f43692..ac7ee783f83 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -1927,6 +1927,13 @@ when listed by its label selector. release: v1.19 file: test/e2e/common/node/podtemplates.go +- testname: PodTemplate, replace + codename: '[sig-node] PodTemplates should replace a pod template [Conformance]' + description: Attempt to create a PodTemplate which MUST succeed. Attempt to replace + the PodTemplate to include a new annotation which MUST succeed. The annotation + MUST be found in the new PodTemplate. + release: v1.24 + file: test/e2e/common/node/podtemplates.go - testname: PodTemplate lifecycle codename: '[sig-node] PodTemplates should run the lifecycle of PodTemplates [Conformance]' description: Attempt to create a PodTemplate. Patch the created PodTemplate. Fetching diff --git a/test/e2e/common/node/podtemplates.go b/test/e2e/common/node/podtemplates.go index 3f5284b86b9..ac8f0fe7ac6 100644 --- a/test/e2e/common/node/podtemplates.go +++ b/test/e2e/common/node/podtemplates.go @@ -164,7 +164,14 @@ var _ = SIGDescribe("PodTemplates", func() { }) - ginkgo.It("should replace a pod template", func() { + /* + Release: v1.24 + Testname: PodTemplate, replace + Description: Attempt to create a PodTemplate which MUST succeed. + Attempt to replace the PodTemplate to include a new annotation + which MUST succeed. The annotation MUST be found in the new PodTemplate. + */ + framework.ConformanceIt("should replace a pod template", func() { ptClient := f.ClientSet.CoreV1().PodTemplates(f.Namespace.Name) ptName := "podtemplate-" + utilrand.String(5)