Skip to content

Commit 0033166

Browse files
committed
CR feedback
1 parent 6a8647e commit 0033166

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

cli/test/kots_app_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,9 @@ var _ = Describe("kots apps", func() {
9898
`)
9999
})
100100
})
101-
Context("replicated app create & replicated app delete", func() {
102-
It("should create and then delete an app", func() {
101+
102+
Context("replicated app delete", func() {
103+
It("should delete an app", func() {
103104
newName := mustToken(8)
104105
newName = strings.ReplaceAll(newName, "_", "-")
105106
newName = strings.ReplaceAll(newName, "=", "-")
@@ -110,9 +111,16 @@ var _ = Describe("kots apps", func() {
110111
rootCmd.SetArgs([]string{"app", "create", newName})
111112
err = cmd.Execute(rootCmd, nil, &stdout, &stderr)
112113
req.NoError(err)
114+
req.Empty(stderr.String(), "Expected no stderr output")
115+
req.NotEmpty(stdout.String(), "Expected stdout output")
113116

114117
appSlug := strings.ToLower(newName) // maybe?
115118

119+
req.Contains(stdout.String(), newName)
120+
req.Contains(stdout.String(), appSlug)
121+
req.Contains(stdout.String(), "kots")
122+
123+
116124
stdout.Truncate(0)
117125
rootCmd = cmd.GetRootCmd()
118126
rootCmd.SetArgs([]string{"app", "delete", appSlug, "--force"})

0 commit comments

Comments
 (0)