mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
remove mapper dependency - PrintSuccess
This commit is contained in:
@@ -60,7 +60,7 @@ func TestPatchObject(t *testing.T) {
|
||||
cmd.Run(cmd, []string{"services/frontend"})
|
||||
|
||||
// uses the name from the response
|
||||
if buf.String() != "service/baz\n" {
|
||||
if buf.String() != "services/baz\n" {
|
||||
t.Errorf("unexpected output: %s", buf.String())
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ func TestPatchObjectFromFile(t *testing.T) {
|
||||
cmd.Run(cmd, []string{})
|
||||
|
||||
// uses the name from the response
|
||||
if buf.String() != "service/baz\n" {
|
||||
if buf.String() != "services/baz\n" {
|
||||
t.Errorf("unexpected output: %s", buf.String())
|
||||
}
|
||||
}
|
||||
@@ -131,7 +131,7 @@ func TestPatchNoop(t *testing.T) {
|
||||
cmd.Flags().Set("namespace", "test")
|
||||
cmd.Flags().Set("patch", `{"metadata":{"annotations":{"foo":"bar"}}}`)
|
||||
cmd.Run(cmd, []string{"services", "frontend"})
|
||||
if buf.String() != "service \"baz\" patched\n" {
|
||||
if buf.String() != "services \"baz\" patched\n" {
|
||||
t.Errorf("unexpected output: %s", buf.String())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user