Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
| ... | ... |
@@ -92,7 +92,7 @@ func okContainer() *kapi.Container {
|
| 92 | 92 |
} |
| 93 | 93 |
} |
| 94 | 94 |
|
| 95 |
-// TestHandle_createPodOk ensures that a the deployer pod created in response |
|
| 95 |
+// TestHandle_createPodOk ensures that a deployer pod created in response |
|
| 96 | 96 |
// to a new deployment is valid. |
| 97 | 97 |
func TestHandle_createPodOk(t *testing.T) {
|
| 98 | 98 |
var ( |
| ... | ... |
@@ -189,7 +189,7 @@ func TestHandle_createPodOk(t *testing.T) {
|
| 189 | 189 |
} |
| 190 | 190 |
} |
| 191 | 191 |
|
| 192 |
-// TestHandle_createPodFail ensures that an an API failure while creating a |
|
| 192 |
+// TestHandle_createPodFail ensures that an API failure while creating a |
|
| 193 | 193 |
// deployer pod results in a nonfatal error. |
| 194 | 194 |
func TestHandle_createPodFail(t *testing.T) {
|
| 195 | 195 |
var updatedDeployment *kapi.ReplicationController |
| ... | ... |
@@ -222,7 +222,7 @@ func TestHandle_createPodFail(t *testing.T) {
|
| 222 | 222 |
} |
| 223 | 223 |
|
| 224 | 224 |
// TestHandle_deployerPodAlreadyExists ensures that attempts to create a |
| 225 |
-// deployer pod which was already created don't result in an error |
|
| 225 |
+// deployer pod which was already created don't result in an error |
|
| 226 | 226 |
// (effectively skipping the handling as redundant). |
| 227 | 227 |
func TestHandle_deployerPodAlreadyExists(t *testing.T) {
|
| 228 | 228 |
tests := []struct {
|
| ... | ... |
@@ -334,8 +334,8 @@ func TestHandle_unrelatedPodAlreadyExists(t *testing.T) {
|
| 334 | 334 |
} |
| 335 | 335 |
} |
| 336 | 336 |
|
| 337 |
-// TestHandle_unrelatedPodAlreadyExists ensures that attempts to create a |
|
| 338 |
-// deployer pod, when a pod with the same name but missing annotations results |
|
| 337 |
+// TestHandle_unrelatedPodAlreadyExistsTestScaled ensures that attempts to create a |
|
| 338 |
+// deployer pod, when a pod with the same name but be scaled to zero results |
|
| 339 | 339 |
// a transition to failed. |
| 340 | 340 |
func TestHandle_unrelatedPodAlreadyExistsTestScaled(t *testing.T) {
|
| 341 | 341 |
var updatedDeployment *kapi.ReplicationController |
| ... | ... |
@@ -504,7 +504,7 @@ func TestHandle_cleanupPodOk(t *testing.T) {
|
| 504 | 504 |
|
| 505 | 505 |
} |
| 506 | 506 |
|
| 507 |
-// TestHandle_cleanupPodOk ensures that deployer pods are cleaned up for |
|
| 507 |
+// TestHandle_cleanupPodOkTest ensures that deployer pods are cleaned up for |
|
| 508 | 508 |
// deployments in a completed state on test deployment configs, and |
| 509 | 509 |
// replicas is set back to zero. |
| 510 | 510 |
func TestHandle_cleanupPodOkTest(t *testing.T) {
|
| ... | ... |
@@ -554,7 +554,7 @@ func TestHandle_cleanupPodOkTest(t *testing.T) {
|
| 554 | 554 |
} |
| 555 | 555 |
} |
| 556 | 556 |
|
| 557 |
-// TestHandle_cleanupPodNoop ensures that an attempt to delete pods are not made |
|
| 557 |
+// TestHandle_cleanupPodNoop ensures that an attempt to delete pods is not made |
|
| 558 | 558 |
// if the deployer pods are not listed based on a label query |
| 559 | 559 |
func TestHandle_cleanupPodNoop(t *testing.T) {
|
| 560 | 560 |
fake := &ktestclient.Fake{}
|