Merge pull request #66634 from janetkuo/deploy-conform
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add Deployment conformance tests **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: @kubernetes/sig-apps-pr-reviews @kubernetes/sig-architecture-pr-reviews **Release note**: ```release-note NONE ```
This commit is contained in:
commit
71b074ff0a
5
test/conformance/testdata/conformance.txt
vendored
5
test/conformance/testdata/conformance.txt
vendored
@ -17,6 +17,11 @@ test/e2e/apps/daemon_set.go: "should run and stop complex daemon"
|
|||||||
test/e2e/apps/daemon_set.go: "should retry creating failed daemon pods"
|
test/e2e/apps/daemon_set.go: "should retry creating failed daemon pods"
|
||||||
test/e2e/apps/daemon_set.go: "should update pod when spec was updated and update strategy is RollingUpdate"
|
test/e2e/apps/daemon_set.go: "should update pod when spec was updated and update strategy is RollingUpdate"
|
||||||
test/e2e/apps/daemon_set.go: "should rollback without unnecessary restarts"
|
test/e2e/apps/daemon_set.go: "should rollback without unnecessary restarts"
|
||||||
|
test/e2e/apps/deployment.go: "RollingUpdateDeployment should delete old pods and create new ones"
|
||||||
|
test/e2e/apps/deployment.go: "RecreateDeployment should delete old pods and create new ones"
|
||||||
|
test/e2e/apps/deployment.go: "deployment should delete old replica sets"
|
||||||
|
test/e2e/apps/deployment.go: "deployment should support rollover"
|
||||||
|
test/e2e/apps/deployment.go: "deployment should support proportional scaling"
|
||||||
test/e2e/apps/rc.go: "should serve a basic image on each replica with a public image"
|
test/e2e/apps/rc.go: "should serve a basic image on each replica with a public image"
|
||||||
test/e2e/apps/replica_set.go: "should serve a basic image on each replica with a public image"
|
test/e2e/apps/replica_set.go: "should serve a basic image on each replica with a public image"
|
||||||
test/e2e/apps/statefulset.go: "should perform rolling updates and roll backs of template modifications"
|
test/e2e/apps/statefulset.go: "should perform rolling updates and roll backs of template modifications"
|
||||||
|
@ -70,16 +70,35 @@ var _ = SIGDescribe("Deployment", func() {
|
|||||||
It("deployment reaping should cascade to its replica sets and pods", func() {
|
It("deployment reaping should cascade to its replica sets and pods", func() {
|
||||||
testDeleteDeployment(f)
|
testDeleteDeployment(f)
|
||||||
})
|
})
|
||||||
It("RollingUpdateDeployment should delete old pods and create new ones", func() {
|
/*
|
||||||
|
Testname: Deployment RollingUpdate
|
||||||
|
Description: A conformant Kubernetes distribution MUST support the Deployment with RollingUpdate strategy.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("RollingUpdateDeployment should delete old pods and create new ones", func() {
|
||||||
testRollingUpdateDeployment(f)
|
testRollingUpdateDeployment(f)
|
||||||
})
|
})
|
||||||
It("RecreateDeployment should delete old pods and create new ones", func() {
|
/*
|
||||||
|
Testname: Deployment Recreate
|
||||||
|
Description: A conformant Kubernetes distribution MUST support the Deployment with Recreate strategy.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("RecreateDeployment should delete old pods and create new ones", func() {
|
||||||
testRecreateDeployment(f)
|
testRecreateDeployment(f)
|
||||||
})
|
})
|
||||||
It("deployment should delete old replica sets", func() {
|
/*
|
||||||
|
Testname: Deployment RevisionHistoryLimit
|
||||||
|
Description: A conformant Kubernetes distribution MUST clean up Deployment's ReplicaSets based on
|
||||||
|
the Deployment's `.spec.revisionHistoryLimit`.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("deployment should delete old replica sets", func() {
|
||||||
testDeploymentCleanUpPolicy(f)
|
testDeploymentCleanUpPolicy(f)
|
||||||
})
|
})
|
||||||
It("deployment should support rollover", func() {
|
/*
|
||||||
|
Testname: Deployment Rollover
|
||||||
|
Description: A conformant Kubernetes distribution MUST support Deployment rollover,
|
||||||
|
i.e. allow arbitrary number of changes to desired state during rolling update
|
||||||
|
before the rollout finishes.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("deployment should support rollover", func() {
|
||||||
testRolloverDeployment(f)
|
testRolloverDeployment(f)
|
||||||
})
|
})
|
||||||
It("deployment should support rollback", func() {
|
It("deployment should support rollback", func() {
|
||||||
@ -91,7 +110,13 @@ var _ = SIGDescribe("Deployment", func() {
|
|||||||
It("test Deployment ReplicaSet orphaning and adoption regarding controllerRef", func() {
|
It("test Deployment ReplicaSet orphaning and adoption regarding controllerRef", func() {
|
||||||
testDeploymentsControllerRef(f)
|
testDeploymentsControllerRef(f)
|
||||||
})
|
})
|
||||||
It("deployment should support proportional scaling", func() {
|
/*
|
||||||
|
Testname: Deployment Proportional Scaling
|
||||||
|
Description: A conformant Kubernetes distribution MUST support Deployment
|
||||||
|
proportional scaling, i.e. proportionally scale a Deployment's ReplicaSets
|
||||||
|
when a Deployment is scaled.
|
||||||
|
*/
|
||||||
|
framework.ConformanceIt("deployment should support proportional scaling", func() {
|
||||||
testProportionalScalingDeployment(f)
|
testProportionalScalingDeployment(f)
|
||||||
})
|
})
|
||||||
// TODO: add tests that cover deployment.Spec.MinReadySeconds once we solved clock-skew issues
|
// TODO: add tests that cover deployment.Spec.MinReadySeconds once we solved clock-skew issues
|
||||||
|
Loading…
Reference in New Issue
Block a user