(#460) Extend license mapping for common SPDX license names (#509)

Fixes #460 
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
This commit is contained in:
Christopher Angelo Phillips
2021-09-30 16:54:36 -04:00
committed by GitHub
parent 270fbb7665
commit 75aed5f3ec
8 changed files with 1432 additions and 569 deletions
@@ -95,6 +95,15 @@ func Test_getSPDXLicense(t *testing.T) {
},
expected: "GPL-3.0",
},
{
name: "debian to spdx conversion",
input: pkg.Package{
Licenses: []string{
"GPL-2",
},
},
expected: "GPL-2.0",
},
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {