mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
Update the CPE generation for spring-security-core (#1789)
* Update the CPE generation for spring-security-core * Add vendor test for spring-security Signed-off-by: Josh Bressers <josh@bress.net> --------- Signed-off-by: Josh Bressers <josh@bress.net>
This commit is contained in:
parent
ddb338d834
commit
0f1aed4477
@ -32,6 +32,12 @@ var defaultCandidateAdditions = buildCandidateLookup(
|
||||
candidateKey{PkgName: "spring-core"},
|
||||
candidateAddition{AdditionalProducts: []string{"spring_framework", "springsource_spring_framework"}, AdditionalVendors: []string{"pivotal_software", "springsource", "vmware"}},
|
||||
},
|
||||
{
|
||||
// example image: docker.io/jenkins/jenkins:latest
|
||||
pkg.JavaPkg,
|
||||
candidateKey{PkgName: "spring-security-core"},
|
||||
candidateAddition{AdditionalProducts: []string{"spring_security"}, AdditionalVendors: []string{"vmware"}},
|
||||
},
|
||||
{
|
||||
// example image: docker.io/nuxeo:latest
|
||||
pkg.JavaPkg,
|
||||
|
||||
@ -768,6 +768,14 @@ func TestCandidateProducts(t *testing.T) {
|
||||
},
|
||||
expected: []string{"spring_framework", "springsource_spring_framework" /* <-- known good names | default guess --> */, "springframework"},
|
||||
},
|
||||
{
|
||||
name: "spring-security-core",
|
||||
p: pkg.Package{
|
||||
Name: "spring-security-core",
|
||||
Type: pkg.JavaPkg,
|
||||
},
|
||||
expected: []string{"spring-security-core", "spring_security", "spring_security_core"},
|
||||
},
|
||||
{
|
||||
name: "java",
|
||||
p: pkg.Package{
|
||||
@ -857,6 +865,14 @@ func TestCandidateVendor(t *testing.T) {
|
||||
},
|
||||
expected: []string{"elastic" /* <-- known good names | default guess --> */, "elasticsearch"},
|
||||
},
|
||||
{
|
||||
name: "spring-security",
|
||||
p: pkg.Package{
|
||||
Name: "spring-security-core",
|
||||
Type: pkg.JavaPkg,
|
||||
},
|
||||
expected: []string{"vmware" /* <-- known good names | default guess --> */, "spring", "spring-security", "spring-security-core", "spring_security_core", "spring_security"},
|
||||
},
|
||||
{
|
||||
name: "log4j",
|
||||
p: pkg.Package{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user