From 33519192f2b406804dd6e07f17fd9c39e29763c4 Mon Sep 17 00:00:00 2001 From: Guangya Liu Date: Wed, 3 May 2017 01:32:25 +0800 Subject: [PATCH] Toleration should be `notReady:NoExecute` in defaulttolerationseconds test. --- .../admission/defaulttolerationseconds/admission_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/pkg/admission/defaulttolerationseconds/admission_test.go b/plugin/pkg/admission/defaulttolerationseconds/admission_test.go index 76fb78eb1f5..0a0bbe64cb3 100644 --- a/plugin/pkg/admission/defaulttolerationseconds/admission_test.go +++ b/plugin/pkg/admission/defaulttolerationseconds/admission_test.go @@ -39,7 +39,7 @@ func TestForgivenessAdmission(t *testing.T) { expectedPod api.Pod }{ { - description: "pod has no tolerations, expect add tolerations for `notread:NoExecute` and `unreachable:NoExecute`", + description: "pod has no tolerations, expect add tolerations for `notReady:NoExecute` and `unreachable:NoExecute`", requestedPod: api.Pod{ Spec: api.PodSpec{}, }, @@ -63,7 +63,7 @@ func TestForgivenessAdmission(t *testing.T) { }, }, { - description: "pod has tolerations, but none is for taint `notread:NoExecute` or `unreachable:NoExecute`, expect add tolerations for `notread:NoExecute` and `unreachable:NoExecute`", + description: "pod has tolerations, but none is for taint `notReady:NoExecute` or `unreachable:NoExecute`, expect add tolerations for `notReady:NoExecute` and `unreachable:NoExecute`", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{ @@ -170,7 +170,7 @@ func TestForgivenessAdmission(t *testing.T) { }, }, { - description: "pod specified tolerations for both `notread:NoExecute` and `unreachable:NoExecute`, expect no change", + description: "pod specified tolerations for both `notReady:NoExecute` and `unreachable:NoExecute`, expect no change", requestedPod: api.Pod{ Spec: api.PodSpec{ Tolerations: []api.Toleration{