remove mapper dependency - PrintSuccess

This commit is contained in:
juanvallejo
2018-02-01 18:59:11 -05:00
parent 06472a054a
commit beb5ea641a
67 changed files with 156 additions and 169 deletions

View File

@@ -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())
}
}