From 18d33db6234c38d72671ef547f1575e153df1c0b Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Tue, 19 Apr 2022 09:35:27 +1200 Subject: [PATCH] Promote e2e job lifecycle test to Conformance --- test/conformance/testdata/conformance.yaml | 10 ++++++++++ test/e2e/apps/job.go | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 0771b39397f..db019df00a3 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -785,6 +785,16 @@ and delete the job. Job MUST be deleted successfully. release: v1.15 file: test/e2e/apps/job.go +- testname: Jobs, manage lifecycle + codename: '[sig-apps] Job should manage the lifecycle of a job [Conformance]' + description: Attempt to create a suspended Job which MUST succeed. Attempt to patch + the Job to include a new label which MUST succeed. The label MUST be found. Attempt + to replace the Job to include a new annotation which MUST succeed. The annotation + MUST be found. Attempt to list all namespaces with a label selector which MUST + succeed. One list MUST be found. It MUST succeed at deleting a collection of jobs + via a label selector. + release: v1.25 + file: test/e2e/apps/job.go - testname: Jobs, completion after task failure codename: '[sig-apps] Job should run a job to completion when tasks sometimes fail and are locally restarted [Conformance]' diff --git a/test/e2e/apps/job.go b/test/e2e/apps/job.go index 6696747f9b8..84c27867d4c 100644 --- a/test/e2e/apps/job.go +++ b/test/e2e/apps/job.go @@ -518,6 +518,8 @@ var _ = SIGDescribe("Job", func() { }) /* + Release: v1.25 + Testname: Jobs, manage lifecycle Description: Attempt to create a suspended Job which MUST succeed. Attempt to patch the Job to include a new label which MUST succeed. The label MUST be found. Attempt to replace the Job to include a @@ -526,7 +528,7 @@ var _ = SIGDescribe("Job", func() { succeed. One list MUST be found. It MUST succeed at deleting a collection of jobs via a label selector. */ - ginkgo.It("should manage the lifecycle of a job", func() { + framework.ConformanceIt("should manage the lifecycle of a job", func() { jobName := "e2e-" + utilrand.String(5) label := map[string]string{"e2e-job-label": jobName} labelSelector := labels.SelectorFromSet(label).String()