@@ -1229,8 +1229,8 @@ func testFrontendImageNaming(t *testing.T, sb integration.Sandbox) {
1229
1229
// Nothing to check
1230
1230
},
1231
1231
ExporterDocker : func (out , imageName string , exporterResponse map [string ]string ) {
1232
- require .Contains (t , exporterResponse , "image.name" )
1233
- require .Equal (t , exporterResponse ["image.name" ], "docker.io/library/" + imageName )
1232
+ require .Contains (t , exporterResponse , exptypes . ExporterImageNameKey )
1233
+ require .Equal (t , exporterResponse [exptypes . ExporterImageNameKey ], "docker.io/library/" + imageName )
1234
1234
1235
1235
dt , err := os .ReadFile (out )
1236
1236
require .NoError (t , err )
@@ -1257,8 +1257,8 @@ func testFrontendImageNaming(t *testing.T, sb integration.Sandbox) {
1257
1257
require .Equal (t , imageName , dockerMfst [0 ].RepoTags [0 ])
1258
1258
},
1259
1259
ExporterImage : func (_ , imageName string , exporterResponse map [string ]string ) {
1260
- require .Contains (t , exporterResponse , "image.name" )
1261
- require .Equal (t , exporterResponse ["image.name" ], imageName )
1260
+ require .Contains (t , exporterResponse , exptypes . ExporterImageNameKey )
1261
+ require .Equal (t , exporterResponse [exptypes . ExporterImageNameKey ], imageName )
1262
1262
1263
1263
// check if we can pull (requires containerd)
1264
1264
cdAddress := sb .ContainerdAddress ()
@@ -3291,9 +3291,9 @@ func testMultipleExporters(t *testing.T, sb integration.Sandbox) {
3291
3291
require .NoError (t , err )
3292
3292
3293
3293
if workers .IsTestDockerd () {
3294
- require .Equal (t , resp .ExporterResponse ["image.name" ], target1 + "," + target2 )
3294
+ require .Equal (t , resp .ExporterResponse [exptypes . ExporterImageNameKey ], target1 + "," + target2 )
3295
3295
} else {
3296
- require .Equal (t , resp .ExporterResponse ["image.name" ], target2 )
3296
+ require .Equal (t , resp .ExporterResponse [exptypes . ExporterImageNameKey ], target2 )
3297
3297
}
3298
3298
require .FileExists (t , filepath .Join (destDir , "out.tar" ))
3299
3299
require .FileExists (t , filepath .Join (destDir , "out2.tar" ))
0 commit comments