Fix misspelling of success.
Signed-off-by: JunYang <yang.jun22@zte.com.cn>
This commit is contained in:
parent
5b0d0451ff
commit
2d9b27047f
@ -222,7 +222,7 @@ func TestDeleteServiceAccountToken(t *testing.T) {
|
||||
expLeftIndex: []int{1},
|
||||
},
|
||||
{
|
||||
name: "delete all with all suceess requests",
|
||||
name: "delete all with all success requests",
|
||||
requestIndex: []int{0, 1, 2},
|
||||
deletePodUID: []types.UID{"fake-uid-1", "fake-uid-2", "fake-uid-3"},
|
||||
},
|
||||
|
@ -49,7 +49,7 @@ const (
|
||||
// is expected to fail.
|
||||
ExpectProvisionFailureKey = "expect-provision-failure"
|
||||
// The node is marked as uncertain. The attach operation will fail and return timeout error
|
||||
// for the first attach call. The following call will return sucesssfully.
|
||||
// for the first attach call. The following call will return successfully.
|
||||
UncertainAttachNode = "uncertain-attach-node"
|
||||
// The node is marked as timeout. The attach operation will always fail and return timeout error
|
||||
// but the operation is actually succeeded.
|
||||
|
@ -35,7 +35,7 @@ type NamePrintFlags struct {
|
||||
Operation string
|
||||
}
|
||||
|
||||
// Complete sets NamePrintFlags operation flag from sucessTemplate
|
||||
// Complete sets NamePrintFlags operation flag from successTemplate
|
||||
func (f *NamePrintFlags) Complete(successTemplate string) error {
|
||||
f.Operation = fmt.Sprintf(successTemplate, f.Operation)
|
||||
return nil
|
||||
|
@ -73,7 +73,7 @@ type PrintFlags struct {
|
||||
OutputFlagSpecified func() bool
|
||||
}
|
||||
|
||||
// Complete sets NamePrintFlags operation flag from sucessTemplate
|
||||
// Complete sets NamePrintFlags operation flag from successTemplate
|
||||
func (f *PrintFlags) Complete(successTemplate string) error {
|
||||
return f.NamePrintFlags.Complete(successTemplate)
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ import (
|
||||
"k8s.io/kubernetes/pkg/kubelet/cadvisor"
|
||||
)
|
||||
|
||||
const success = "\033[0;32mSUCESS\033[0m"
|
||||
const success = "\033[0;32mSUCCESS\033[0m"
|
||||
const failed = "\033[0;31mFAILED\033[0m"
|
||||
const notConfigured = "\033[0;34mNOT CONFIGURED\033[0m"
|
||||
const skipped = "\033[0;34mSKIPPED\033[0m"
|
||||
|
Loading…
Reference in New Issue
Block a user