From e6f7fed324f4b63df2295465d2aab1ed4dc35d3d Mon Sep 17 00:00:00 2001 From: Stephen Heywood Date: Thu, 12 Nov 2020 13:19:05 +1300 Subject: [PATCH] Promote Deployment lifecycle e2e test to Conformance --- test/conformance/testdata/conformance.yaml | 8 ++++++++ test/e2e/apps/deployment.go | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/test/conformance/testdata/conformance.yaml b/test/conformance/testdata/conformance.yaml index 3879ba3a274..2c8654cdeb3 100755 --- a/test/conformance/testdata/conformance.yaml +++ b/test/conformance/testdata/conformance.yaml @@ -1191,6 +1191,14 @@ before the rollout finishes. release: v1.12 file: test/e2e/apps/deployment.go +- testname: Deployment, completes the lifecycle of a Deployment + codename: '[sig-apps] Deployment should run the lifecycle of a Deployment [Conformance]' + description: When a Deployment is created it MUST succeed with the required number + of replicas. It MUST succeed when the Deployment is patched. When scaling the + deployment is MUST succeed. When fetching and patching the DeploymentStatus it + MUST succeed. It MUST succeed when deleting the Deployment. + release: v1.20 + file: test/e2e/apps/deployment.go - testname: Jobs, orphan pods, re-adoption codename: '[sig-apps] Job should adopt matching orphans and release non-matching pods [Conformance]' diff --git a/test/e2e/apps/deployment.go b/test/e2e/apps/deployment.go index e8fba3f3417..aa200480b89 100644 --- a/test/e2e/apps/deployment.go +++ b/test/e2e/apps/deployment.go @@ -152,7 +152,15 @@ var _ = SIGDescribe("Deployment", func() { // TODO: add tests that cover deployment.Spec.MinReadySeconds once we solved clock-skew issues // See https://github.com/kubernetes/kubernetes/issues/29229 - ginkgo.It("should run the lifecycle of a Deployment", func() { + /* + Release: v1.20 + Testname: Deployment, completes the lifecycle of a Deployment + Description: When a Deployment is created it MUST succeed with the required number of replicas. + It MUST succeed when the Deployment is patched. When scaling the deployment is MUST succeed. + When fetching and patching the DeploymentStatus it MUST succeed. It MUST succeed when deleting + the Deployment. + */ + framework.ConformanceIt("should run the lifecycle of a Deployment", func() { zero := int64(0) deploymentResource := schema.GroupVersionResource{Group: "apps", Version: "v1", Resource: "deployments"} testNamespaceName := f.Namespace.Name