You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert.Assert(t, createdScan.ID==scanID, "Scan ID should be equal")
2312
+
assert.Equal(t, len(createdScan.Metadata.Configs), 1, "Scan should have only containers config")
2313
+
2314
+
createdScanConfig=createdScan.Metadata.Configs[0]
2315
+
2316
+
assert.Equal(t, createdScanConfig.Type, params.ContainersType, "Scan type should be equal")
2317
+
// For git scans, UserCustomImages should be included even with containerResolveLocally=true
2318
+
assert.Equal(t, createdScanConfig.Value[commands.ConfigUserCustomImagesKey], customImages, "UserCustomImages should be set for git scan even with resolve locally")
assert.Assert(t, createdScan.ID==scanID, "Scan ID should be equal")
2350
+
assert.Equal(t, len(createdScan.Metadata.Configs), 1, "Scan should have only containers config")
2351
+
2352
+
createdScanConfig=createdScan.Metadata.Configs[0]
2353
+
2354
+
assert.Equal(t, createdScanConfig.Type, params.ContainersType, "Scan type should be equal")
2355
+
// For upload scans with containerResolveLocally=true, UserCustomImages should NOT be included
2356
+
assert.Equal(t, createdScanConfig.Value[commands.ConfigUserCustomImagesKey], nil, "UserCustomImages should not be set for upload scan with resolve locally")
assert.Assert(t, createdScan.ID==scanID, "Scan ID should be equal")
2389
+
assert.Equal(t, len(createdScan.Metadata.Configs), 1, "Scan should have only containers config")
2390
+
2391
+
createdScanConfig=createdScan.Metadata.Configs[0]
2392
+
2393
+
assert.Equal(t, createdScanConfig.Type, params.ContainersType, "Scan type should be equal")
2394
+
// For git scans without containerResolveLocally, UserCustomImages should be included (existing behavior)
2395
+
assert.Equal(t, createdScanConfig.Value[commands.ConfigUserCustomImagesKey], customImages, "UserCustomImages should be set for git scan without resolve locally")
0 commit comments