@@ -12,11 +12,11 @@ import (
1212
1313func insertBundles (t * testing.T , cmd icmd.Cmd , info dindSwarmAndRegistryInfo ) {
1414 // Push an application so that we can later pull it by digest
15- cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), info .registryAddress + "/c-myapp" )
15+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), "--tag" , info .registryAddress + "/c-myapp" )
1616 icmd .RunCmd (cmd ).Assert (t , icmd .Success )
17- cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "b-simple-app" )
17+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "--tag" , " b-simple-app" )
1818 icmd .RunCmd (cmd ).Assert (t , icmd .Success )
19- cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "a-simple-app" )
19+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "--tag" , " a-simple-app" )
2020 icmd .RunCmd (cmd ).Assert (t , icmd .Success )
2121}
2222
@@ -86,7 +86,7 @@ func TestImageTag(t *testing.T) {
8686 }
8787
8888 // given a first available image
89- cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "a-simple-app" )
89+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "simple" , "simple.dockerapp" ), "--tag" , " a-simple-app" )
9090 icmd .RunCmd (cmd ).Assert (t , icmd .Success )
9191
9292 singleImageExpectation := `APP IMAGE APP NAME
@@ -112,14 +112,14 @@ a-simple-app:latest simple
112112 dockerAppImageTag ("a-simple-app$2" , "b-simple-app" )
113113 icmd .RunCmd (cmd ).Assert (t , icmd.Expected {
114114 ExitCode : 1 ,
115- Err : `could not parse 'a-simple-app$2' as a valid reference: invalid reference format ` ,
115+ Err : `could not parse 'a-simple-app$2' as a valid reference` ,
116116 })
117117
118118 // with invalid target reference
119119 dockerAppImageTag ("a-simple-app" , "b@simple-app" )
120120 icmd .RunCmd (cmd ).Assert (t , icmd.Expected {
121121 ExitCode : 1 ,
122- Err : `could not parse 'b@simple-app' as a valid reference: invalid reference format ` ,
122+ Err : `could not parse 'b@simple-app' as a valid reference` ,
123123 })
124124
125125 // with unexisting source image
@@ -175,7 +175,7 @@ c-simple-app:latest simple
175175` )
176176
177177 // given a new application
178- cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), "push-pull" )
178+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), "--tag" , " push-pull" )
179179 icmd .RunCmd (cmd ).Assert (t , icmd .Success )
180180 expectImageListOutput (t , cmd , `APP IMAGE APP NAME
181181a-simple-app:0.1 simple
0 commit comments