Merge pull request #60551 from brahmaroutu/conf_CRD

Automatic merge from submit-queue (batch tested with PRs 66445, 66643, 60551). 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>.

Adding details to Conformance Tests using RFC 2119 standards.

This PR is part of the conformance documentation. This is to provide more formal specification using RFC 2119 keywords to describe the test so that who ever is running conformance tests do not have to go through the code to understand why and what is tested.
The documentation information added here into each of the tests eventually result into a document which is currently checked in at location https://github.com/cncf/k8s-conformance/blob/master/docs/KubeConformance-1.9.md

I would like to have this PR reviewed for v1.10 as I consider it important to strengthen the conformance documents.
This commit is contained in:
Kubernetes Submit Queue 2018-07-31 15:56:10 -07:00 committed by GitHub
commit 99133f510d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 28 deletions

View File

@ -34,9 +34,9 @@ var _ = SIGDescribe("CustomResourceDefinition resources", func() {
Context("Simple CustomResourceDefinition", func() { Context("Simple CustomResourceDefinition", func() {
/* /*
Testname: crd-creation-test Release : v1.9
Description: Create a random Custom Resource Definition and make sure Testname: Custom Resource Definition, create
the API returns success. Description: Create a API extension client, define a random custom resource definition, create the custom resource. API server MUST be able to create the custom resource.
*/ */
framework.ConformanceIt("creating/deleting custom resource definition objects works ", func() { framework.ConformanceIt("creating/deleting custom resource definition objects works ", func() {

View File

@ -336,10 +336,9 @@ var _ = SIGDescribe("Garbage collector", func() {
f := framework.NewDefaultFramework("gc") f := framework.NewDefaultFramework("gc")
/* /*
Testname: garbage-collector-delete-rc--propagation-background Release : v1.9
Description: Ensure that if deleteOptions.PropagationPolicy is set to Background, Testname: Garbage Collector, delete replication controller, propagation policy background
then deleting a ReplicationController should cause pods created Description: Create a replication controller with 2 Pods. Once RC is created and the first Pod is created, delete RC with deleteOptions.PropagationPolicy set to Background. Deleting the Replication Controller MUST cause pods created by that RC to be deleted.
by that RC to also be deleted.
*/ */
framework.ConformanceIt("should delete pods created by rc when not orphaning", func() { framework.ConformanceIt("should delete pods created by rc when not orphaning", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -394,10 +393,9 @@ var _ = SIGDescribe("Garbage collector", func() {
}) })
/* /*
Testname: garbage-collector-delete-rc--propagation-orphan Release : v1.9
Description: Ensure that if deleteOptions.PropagationPolicy is set to Orphan, Testname: Garbage Collector, delete replication controller, propagation policy orphan
then deleting a ReplicationController should cause pods created Description: Create a replication controller with maximum allocatable Pods between 10 and 100 replicas. Once RC is created and the all Pods are created, delete RC with deleteOptions.PropagationPolicy set to Orphan. Deleting the Replication Controller MUST cause pods created by that RC to be orphaned.
by that RC to be orphaned.
*/ */
framework.ConformanceIt("should orphan pods created by rc if delete options say so", func() { framework.ConformanceIt("should orphan pods created by rc if delete options say so", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -508,10 +506,9 @@ var _ = SIGDescribe("Garbage collector", func() {
}) })
/* /*
Testname: garbage-collector-delete-deployment-propagation-background Release : v1.9
Description: Ensure that if deleteOptions.PropagationPolicy is set to Background, Testname: Garbage Collector, delete deployment, propagation policy background
then deleting a Deployment should cause ReplicaSets created Description: Create a deployment with a replicaset. Once replicaset is created , delete the deployment with deleteOptions.PropagationPolicy set to Background. Deleting the deployment MUST delete the replicaset created by the deployment and also the Pods that belong to the deployments MUST be deleted.
by that Deployment to also be deleted.
*/ */
framework.ConformanceIt("should delete RS created by deployment when not orphaning", func() { framework.ConformanceIt("should delete RS created by deployment when not orphaning", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -567,10 +564,9 @@ var _ = SIGDescribe("Garbage collector", func() {
}) })
/* /*
Testname: garbage-collector-delete-deployment-propagation-true Release : v1.9
Description: Ensure that if deleteOptions.PropagationPolicy is set to Orphan, Testname: Garbage Collector, delete deployment, propagation policy orphan
then deleting a Deployment should cause ReplicaSets created Description: Create a deployment with a replicaset. Once replicaset is created , delete the deployment with deleteOptions.PropagationPolicy set to Orphan. Deleting the deployment MUST cause the replicaset created by the deployment to be orphaned, also the Pods created by the deployments MUST be orphaned.
by that Deployment to be orphaned.
*/ */
framework.ConformanceIt("should orphan RS created by deployment when deleteOptions.PropagationPolicy is Orphan", func() { framework.ConformanceIt("should orphan RS created by deployment when deleteOptions.PropagationPolicy is Orphan", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -641,9 +637,9 @@ var _ = SIGDescribe("Garbage collector", func() {
}) })
/* /*
Testname: garbage-collector-delete-rc-after-owned-pods Release : v1.9
Description: Ensure that if deleteOptions.PropagationPolicy is set to Foreground, Testname: Garbage Collector, delete replication controller, after owned pods
then a ReplicationController should not be deleted until all its dependent pods are deleted. Description: Create a replication controller with maximum allocatable Pods between 10 and 100 replicas. Once RC is created and the all Pods are created, delete RC with deleteOptions.PropagationPolicy set to Foreground. Deleting the Replication Controller MUST cause pods created by that RC to be deleted before the RC is deleted.
*/ */
framework.ConformanceIt("should keep the rc around until all its pods are deleted if the deleteOptions says so", func() { framework.ConformanceIt("should keep the rc around until all its pods are deleted if the deleteOptions says so", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -729,9 +725,9 @@ var _ = SIGDescribe("Garbage collector", func() {
// TODO: this should be an integration test // TODO: this should be an integration test
/* /*
Testname: garbage-collector-multiple-owners Release : v1.9
Description: Ensure that if a Pod has multiple valid owners, it will not be deleted Testname: Garbage Collector, multiple owners
when one of of those owners gets deleted. Description: Create a replication controller RC1, with maximum allocatable Pods between 10 and 100 replicas. Create second replication controller RC2 and set RC2 as owner for half of those replicas. Once RC1 is created and the all Pods are created, delete RC1 with deleteOptions.PropagationPolicy set to Foreground. Half of the Pods that has RC2 as owner MUST not be deleted but have a deletion timestamp. Deleting the Replication Controller MUST not delete Pods that are owned by multiple replication controllers.
*/ */
framework.ConformanceIt("should not delete dependents that have both valid owner and owner that's waiting for dependents to be deleted", func() { framework.ConformanceIt("should not delete dependents that have both valid owner and owner that's waiting for dependents to be deleted", func() {
clientSet := f.ClientSet clientSet := f.ClientSet
@ -843,9 +839,9 @@ var _ = SIGDescribe("Garbage collector", func() {
// TODO: should be an integration test // TODO: should be an integration test
/* /*
Testname: garbage-collector-dependency-cycle Release : v1.9
Description: Ensure that a dependency cycle will Testname: Garbage Collector, dependency cycle
not block the garbage collector. Description: Create three pods, patch them with Owner references such that pod1 has pod3, pod2 has pod1 and pod3 has pod2 as owner references respectively. Delete pod1 MUST delete all pods. The dependency cycle MUST not block the garbage collection.
*/ */
framework.ConformanceIt("should not be blocked by dependency circle", func() { framework.ConformanceIt("should not be blocked by dependency circle", func() {
clientSet := f.ClientSet clientSet := f.ClientSet