Change KYAML gate to on-by-default
Kubernetes-commit: 5af2b732beeae755c5a87b423659ab46968f4a14
This commit is contained in:
parent
74f9adbfa6
commit
21b32eea57
|
|
@ -18,6 +18,7 @@ package apiresources
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
@ -57,8 +58,8 @@ See 'kubectl api-resources -h' for help and examples`
|
||||||
if err == nil {
|
if err == nil {
|
||||||
t.Fatalf("An error was expected but not returned")
|
t.Fatalf("An error was expected but not returned")
|
||||||
}
|
}
|
||||||
expectedError = `unable to match a printer suitable for the output format "foo", allowed formats are: json,name,wide,yaml`
|
expectedError = `unable to match a printer suitable for the output format "foo", allowed formats are:`
|
||||||
if err.Error() != expectedError {
|
if !strings.HasPrefix(err.Error(), expectedError) {
|
||||||
t.Fatalf("Unexpected error: %v\n expected: %v", err, expectedError)
|
t.Fatalf("Unexpected error: %v\n expected: %v", err, expectedError)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue