@@ -98,8 +98,9 @@ var _ = Describe("kots apps", func() {
98
98
` )
99
99
})
100
100
})
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 () {
103
104
newName := mustToken (8 )
104
105
newName = strings .ReplaceAll (newName , "_" , "-" )
105
106
newName = strings .ReplaceAll (newName , "=" , "-" )
@@ -110,9 +111,16 @@ var _ = Describe("kots apps", func() {
110
111
rootCmd .SetArgs ([]string {"app" , "create" , newName })
111
112
err = cmd .Execute (rootCmd , nil , & stdout , & stderr )
112
113
req .NoError (err )
114
+ req .Empty (stderr .String (), "Expected no stderr output" )
115
+ req .NotEmpty (stdout .String (), "Expected stdout output" )
113
116
114
117
appSlug := strings .ToLower (newName ) // maybe?
115
118
119
+ req .Contains (stdout .String (), newName )
120
+ req .Contains (stdout .String (), appSlug )
121
+ req .Contains (stdout .String (), "kots" )
122
+
123
+
116
124
stdout .Truncate (0 )
117
125
rootCmd = cmd .GetRootCmd ()
118
126
rootCmd .SetArgs ([]string {"app" , "delete" , appSlug , "--force" })
0 commit comments