From 17c76c88c58ce75b2af2d41c3f353dbbdce0da90 Mon Sep 17 00:00:00 2001 From: amf Date: Thu, 15 Aug 2024 17:34:05 +0600 Subject: [PATCH] remove file path --- pkg/sbom/cyclonedx/marshal_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/sbom/cyclonedx/marshal_test.go b/pkg/sbom/cyclonedx/marshal_test.go index a4c68bd1b93..8b88c4ec762 100644 --- a/pkg/sbom/cyclonedx/marshal_test.go +++ b/pkg/sbom/cyclonedx/marshal_test.go @@ -1462,7 +1462,7 @@ func TestMarshaler_MarshalReport(t *testing.T) { Name: "com.fasterxml.jackson.core:jackson-databind", Version: "2.13.4.1", Identifier: ftypes.PkgIdentifier{ - BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", UID: "9A5066570222D04C", PURL: &packageurl.PackageURL{ Type: packageurl.TypeMaven, @@ -1480,7 +1480,7 @@ func TestMarshaler_MarshalReport(t *testing.T) { PkgName: "com.fasterxml.jackson.core:jackson-databind", PkgPath: "jackson-databind-2.13.4.1.jar", PkgIdentifier: ftypes.PkgIdentifier{ - BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", UID: "9A5066570222D04C", PURL: &packageurl.PackageURL{ Type: packageurl.TypeMaven, @@ -1557,7 +1557,7 @@ func TestMarshaler_MarshalReport(t *testing.T) { }, Components: &[]cdx.Component{ { - BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + BOMRef: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", Type: cdx.ComponentTypeLibrary, Group: "com.fasterxml.jackson.core", Name: "jackson-databind", @@ -1607,7 +1607,7 @@ func TestMarshaler_MarshalReport(t *testing.T) { Updated: "2022-12-20T10:15:00+00:00", Affects: &[]cdx.Affects{ { - Ref: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + Ref: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", Range: &[]cdx.AffectedVersions{ { Version: "2.13.4.1", @@ -1622,11 +1622,11 @@ func TestMarshaler_MarshalReport(t *testing.T) { { Ref: "aff65b54-6009-4c32-968d-748949ef46e8", Dependencies: &[]string{ - "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", }, }, { - Ref: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1?file_path=jackson-databind-2.13.4.1.jar", + Ref: "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.4.1", Dependencies: lo.ToPtr([]string{}), }, },