@@ -320,7 +320,14 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
320
320
ExitCode : 1 ,
321
321
Err : "error decoding 'Ports': Invalid hostPort: -1" ,
322
322
})
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
+ })
324
331
325
332
// Upgrading a failed installation is not allowed
326
333
cmd .Command = dockerCli .Command ("app" , "upgrade" , appName )
@@ -350,12 +357,12 @@ func testDockerAppLifecycle(t *testing.T, useBindMount bool) {
350
357
fmt .Sprintf ("[[:alnum:]]+ %s_api replicated [0-1]/1 python:3.6" , appName ),
351
358
})
352
359
353
- // List the installed applications
360
+ // List the installed application
354
361
cmd .Command = dockerCli .Command ("app" , "list" )
355
362
checkContains (t , icmd .RunCmd (cmd ).Assert (t , icmd .Success ).Combined (),
356
363
[]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 ),
359
366
})
360
367
361
368
// Installing again the same application is forbidden
0 commit comments