@@ -320,7 +320,14 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
320320 ExitCode : 1 ,
321321 Err : "error decoding 'Ports': Invalid hostPort: -1" ,
322322 })
323- // TODO: List the installation and check the failed status
323+
324+ // List the installation and check the failed status
325+ cmd .Command = dockerCli .Command ("app" , "list" )
326+ checkContains (t , icmd .RunCmd (cmd ).Assert (t , icmd .Success ).Combined (),
327+ []string {
328+ `INSTALLATION\s+APPLICATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED` ,
329+ fmt .Sprintf (`%s\s+simple \(1.1.0-beta1\)\s+install\s+failure\s+.+second?\s+.+second` , appName ),
330+ })
324331
325332 // Upgrading a failed installation is not allowed
326333 cmd .Command = dockerCli .Command ("app" , "upgrade" , appName )
@@ -350,12 +357,12 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
350357 fmt .Sprintf ("[[:alnum:]]+ %s_api replicated [0-1]/1 python:3.6" , appName ),
351358 })
352359
353- // List the installed applications
360+ // List the installed application
354361 cmd .Command = dockerCli .Command ("app" , "list" )
355362 checkContains (t , icmd .RunCmd (cmd ).Assert (t , icmd .Success ).Combined (),
356363 []string {
357- `INSTALLATION\s+LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED` ,
358- fmt .Sprintf (`%s\s+install\s+success\s+[[:alnum:]]+\ssecond .\s+[[:alnum:]]+\ssecond ` , appName ),
364+ `INSTALLATION\s+APPLICATION\s+ LAST ACTION\s+RESULT\s+CREATED\s+MODIFIED` ,
365+ fmt .Sprintf (`%s\s+simple \(1.1.0-beta1\)\s+ install\s+success\s+.+second .\s+.+second ` , appName ),
359366 })
360367
361368 // Installing again the same application is forbidden
0 commit comments