mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 08:56:41 +01:00
chore: bump packageurl-go with new parsing rules (#3596)
* chore: bump packageurl-go with new parsing rules * test: update expectedPURL in unit tests to match new % encoding --------- Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
@@ -157,7 +157,7 @@ func TestJvmDistributionCataloger(t *testing.T) {
|
||||
Licenses: pkg.NewLicenseSet(),
|
||||
Type: pkg.BinaryPkg,
|
||||
CPEs: []cpe.CPE{cpe.Must("cpe:2.3:a:oracle:openjdk:21.0.4:*:*:*:*:*:*:*", cpe.DeclaredSource)},
|
||||
PURL: "pkg:generic/oracle/openjdk@21.0.4%2B7-LTS?repository_url=https://github.com/adoptium/jdk21u.git",
|
||||
PURL: "pkg:generic/oracle/openjdk@21.0.4%2B7-LTS?repository_url=https%3A%2F%2Fgithub.com%2Fadoptium%2Fjdk21u.git",
|
||||
Metadata: pkg.JavaVMInstallation{
|
||||
Release: pkg.JavaVMRelease{
|
||||
Implementor: "Eclipse Adoptium",
|
||||
|
||||
@@ -395,7 +395,7 @@ func TestJvmPurl(t *testing.T) {
|
||||
version: "21.0.4",
|
||||
vendor: "oracle",
|
||||
product: "jdk",
|
||||
expectedPURL: "pkg:generic/oracle/jdk@21.0.4?repository_url=https://github.com/adoptium/temurin-build.git",
|
||||
expectedPURL: "pkg:generic/oracle/jdk@21.0.4?repository_url=https%3A%2F%2Fgithub.com%2Fadoptium%2Ftemurin-build.git",
|
||||
},
|
||||
{
|
||||
name: "source repo provided, no build source repo",
|
||||
@@ -405,7 +405,7 @@ func TestJvmPurl(t *testing.T) {
|
||||
version: "21.0.4",
|
||||
vendor: "azul",
|
||||
product: "zulu",
|
||||
expectedPURL: "pkg:generic/azul/zulu@21.0.4?repository_url=https://github.com/adoptium/jdk21u.git",
|
||||
expectedPURL: "pkg:generic/azul/zulu@21.0.4?repository_url=https%3A%2F%2Fgithub.com%2Fadoptium%2Fjdk21u.git",
|
||||
},
|
||||
{
|
||||
name: "no repository URLs provided",
|
||||
@@ -425,7 +425,7 @@ func TestJvmPurl(t *testing.T) {
|
||||
version: "1.8.0_302",
|
||||
vendor: "oracle",
|
||||
product: "jre",
|
||||
expectedPURL: "pkg:generic/oracle/jre@1.8.0_302?repository_url=https://github.com/adoptium/jre-repo.git",
|
||||
expectedPURL: "pkg:generic/oracle/jre@1.8.0_302?repository_url=https%3A%2F%2Fgithub.com%2Fadoptium%2Fjre-repo.git",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user