kubectl/config/rename: fix wording

Using "Context %q renamed to %q." in rename-context to be consistent with other
commands like delete-context, set-context, use-context.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan
2017-11-02 21:10:11 -07:00
parent 1fc64162d3
commit d7b0890217
2 changed files with 2 additions and 2 deletions

View File

@@ -130,6 +130,6 @@ func (o RenameContextOptions) RunRenameContext(out io.Writer) error {
return err
}
fmt.Fprintf(out, "Context %q was renamed to %q.\n", o.contextName, o.newName)
fmt.Fprintf(out, "Context %q renamed to %q.\n", o.contextName, o.newName)
return nil
}

View File

@@ -62,7 +62,7 @@ func TestRenameContext(t *testing.T) {
initialConfig: initialConfig,
expectedConfig: expectedConfig,
args: []string{currentContext, newContext},
expectedOut: fmt.Sprintf("Context %q was renamed to %q.\n", currentContext, newContext),
expectedOut: fmt.Sprintf("Context %q renamed to %q.\n", currentContext, newContext),
expectedErr: "",
}
test.run(t)