Skip to content

Commit 1667a8d

Browse files
authored
Merge pull request #536 from CircleCI-Public/CIRCLE-32122
[CIRCLE-32122] use the correct delete alias cmd name in prompt
2 parents 55a9ecc + 27b4478 commit 1667a8d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cmd/admin_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,10 @@ var _ = Describe("Namespace integration tests", func() {
168168
By("running the command")
169169
session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
170170
Expect(err).ShouldNot(HaveOccurred())
171-
Eventually(session.Out, "5s").Should(gbytes.Say("`ns-0` renamed to `ns-1`"))
172171
Eventually(session).Should(gexec.Exit(0))
172+
173+
stdout := session.Wait().Out.Contents()
174+
Expect(string(stdout)).To(ContainSubstring("Namespace `ns-0` renamed to `ns-1`. `ns-0` is an alias for `ns-1` so existing usages will continue to work, unless you delete the `ns-0` alias with `delete-namespace-alias ns-0`"))
173175
})
174176

175177
It("returns an error when renaming a namespace fails", func() {

cmd/namespace.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func renameNamespace(opts namespaceOptions) error {
143143
return err
144144
}
145145

146-
fmt.Printf("Namespace `%s` renamed to `%s`. `%s` is an alias for `%s` so existing usages will continue to work, unless you delete the %s alias with `namespace delete-alias %s`", oldName, newName, oldName, newName, oldName, oldName)
146+
fmt.Printf("Namespace `%s` renamed to `%s`. `%s` is an alias for `%s` so existing usages will continue to work, unless you delete the `%s` alias with `delete-namespace-alias %s`", oldName, newName, oldName, newName, oldName, oldName)
147147
}
148148
return nil
149149
}

0 commit comments

Comments
 (0)