@@ -93,31 +93,11 @@ var _ = Describe("kots apps", func() {
9393 req .NotEmpty (stdout .String (), "Expected stdout output" )
9494
9595 req .Equal (stdout .String (),
96- `ID NAME SCHEDULER
97- ` + app .ID + ` ` + app .Name + ` kots
96+ `ID NAME SLUG SCHEDULER
97+ ` + app .ID + ` ` + app .Name + ` ` + app . Slug + ` kots
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 (), app .ID )
117- req .Contains (stdout .String (), app .Name )
118- req .Contains (stdout .String (), "kots" )
119- })
120- })
121101
122102 Context ("replicated app delete" , func () {
123103 It ("should delete an app" , func () {
@@ -131,9 +111,16 @@ var _ = Describe("kots apps", func() {
131111 rootCmd .SetArgs ([]string {"app" , "create" , newName })
132112 err = cmd .Execute (rootCmd , nil , & stdout , & stderr )
133113 req .NoError (err )
114+ req .Empty (stderr .String (), "Expected no stderr output" )
115+ req .NotEmpty (stdout .String (), "Expected stdout output" )
134116
135117 appSlug := strings .ToLower (newName ) // maybe?
136118
119+ req .Contains (stdout .String (), newName )
120+ req .Contains (stdout .String (), appSlug )
121+ req .Contains (stdout .String (), "kots" )
122+
123+
137124 stdout .Truncate (0 )
138125 rootCmd = cmd .GetRootCmd ()
139126 rootCmd .SetArgs ([]string {"app" , "delete" , appSlug , "--force" })
0 commit comments