Skip to content

Commit 6a8647e

Browse files
committed
only use tests that clean up after themselves
1 parent 72542b2 commit 6a8647e

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

cli/test/kots_app_test.go

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -98,28 +98,8 @@ var _ = Describe("kots apps", func() {
9898
`)
9999
})
100100
})
101-
Context("replicated app create", func() {
102-
It("should create an app", func() {
103-
newName := mustToken(8)
104-
var stdout bytes.Buffer
105-
var stderr bytes.Buffer
106-
107-
rootCmd := cmd.GetRootCmd()
108-
rootCmd.SetArgs([]string{"app", "create", newName})
109-
110-
err = cmd.Execute(rootCmd, nil, &stdout, &stderr)
111-
req.NoError(err)
112-
113-
req.Empty(stderr.String(), "Expected no stderr output")
114-
req.NotEmpty(stdout.String(), "Expected stdout output")
115-
116-
req.Contains(stdout.String(), newName)
117-
req.Contains(stdout.String(), "kots")
118-
})
119-
})
120-
121-
Context("replicated app delete", func() {
122-
It("should delete an app", func() {
101+
Context("replicated app create & replicated app delete", func() {
102+
It("should create and then delete an app", func() {
123103
newName := mustToken(8)
124104
newName = strings.ReplaceAll(newName, "_", "-")
125105
newName = strings.ReplaceAll(newName, "=", "-")

0 commit comments

Comments
 (0)