fix kubectl patch command error message
Kubernetes-commit: 99f0369f9d9110dbe5d36c20e067e25077a50d9d
This commit is contained in:
parent
32d948f1f4
commit
4c524fcbeb
|
|
@ -794,13 +794,13 @@ func TestResourceErrors(t *testing.T) {
|
|||
"resources but no selectors": {
|
||||
args: []string{"pods"},
|
||||
errFn: func(err error) bool {
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name, label selector, or --all flag specified")
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name was specified")
|
||||
},
|
||||
},
|
||||
"multiple resources but no selectors": {
|
||||
args: []string{"pods,deployments"},
|
||||
errFn: func(err error) bool {
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name, label selector, or --all flag specified")
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name was specified")
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -311,13 +311,13 @@ func TestLabelErrors(t *testing.T) {
|
|||
"resources but no selectors": {
|
||||
args: []string{"pods", "app=bar"},
|
||||
errFn: func(err error) bool {
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name, label selector, or --all flag specified")
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name was specified")
|
||||
},
|
||||
},
|
||||
"multiple resources but no selectors": {
|
||||
args: []string{"pods,deployments", "app=bar"},
|
||||
errFn: func(err error) bool {
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name, label selector, or --all flag specified")
|
||||
return strings.Contains(err.Error(), "resource(s) were provided, but no name was specified")
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue