@@ -18,7 +18,6 @@ import (
18
18
v1 "github.com/opencontainers/image-spec/specs-go/v1"
19
19
"gotest.tools/assert"
20
20
"gotest.tools/assert/cmp"
21
- "gotest.tools/fs"
22
21
"gotest.tools/icmd"
23
22
)
24
23
@@ -189,18 +188,14 @@ func TestPushInstallBundle(t *testing.T) {
189
188
cmd := info .configuredCmd
190
189
ref := info .registryAddress + "/test/push-bundle"
191
190
192
- tmpDir := fs .NewDir (t , t .Name ())
193
- defer tmpDir .Remove ()
194
- bundleFile := tmpDir .Join ("bundle.json" )
195
-
196
191
// render the app to a bundle, we use the app from the push pull test above.
197
- cmd .Command = dockerCli .Command ("app" , "build" , "-o" , bundleFile , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), "a-simple-app" )
192
+ cmd .Command = dockerCli .Command ("app" , "build" , filepath .Join ("testdata" , "push-pull" , "push-pull.dockerapp" ), "a-simple-app:1.0.0 " )
198
193
icmd .RunCmd (cmd ).Assert (t , icmd .Success )
199
194
200
195
// push it and install to check it is available
201
196
t .Run ("push-bundle" , func (t * testing.T ) {
202
197
name := strings .Replace (t .Name (), "/" , "_" , 1 )
203
- cmd .Command = dockerCli .Command ("app" , "push" , "--tag" , ref , bundleFile )
198
+ cmd .Command = dockerCli .Command ("app" , "push" , "--tag" , ref , "a-simple-app:1.0.0" )
204
199
icmd .RunCmd (cmd ).Assert (t , icmd .Success )
205
200
206
201
cmd .Command = dockerCli .Command ("app" , "install" , ref , "--pull" , "--name" , name )
0 commit comments