@@ -296,7 +296,9 @@ def setUp(self):
296296 vuln1 = Vulnerability .objects .create (
297297 summary = "test-vuln1" ,
298298 )
299- alias = Alias .objects .create (alias = "CVE-2019-1234" , vulnerability = vuln1 )
299+ Alias .objects .create (alias = "CVE-2019-1234" , vulnerability = vuln1 )
300+ Alias .objects .create (alias = "GMS-1234-4321" , vulnerability = vuln1 )
301+ Alias .objects .create (alias = "CVE-2029-1234" , vulnerability = vuln )
300302 self .vuln1 = vuln1
301303 PackageRelatedVulnerability .objects .create (
302304 package = self .package ,
@@ -341,7 +343,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
341343 "summary" : "test-vuln1" ,
342344 "references" : [],
343345 "fixed_packages" : [],
344- "aliases" : [{ "alias" : " CVE-2019-1234"} ],
346+ "aliases" : [" CVE-2019-1234", "GMS-1234-4321" ],
345347 }
346348 ],
347349 "fixing_vulnerabilities" : [
@@ -357,7 +359,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
357359 "is_vulnerable" : True ,
358360 }
359361 ],
360- "aliases" : [],
362+ "aliases" : ["CVE-2029-1234" ],
361363 },
362364 ],
363365 "unresolved_vulnerabilities" : [
@@ -367,7 +369,7 @@ def test_api_with_single_vulnerability_and_fixed_package(self):
367369 "summary" : "test-vuln1" ,
368370 "references" : [],
369371 "fixed_packages" : [],
370- "aliases" : [{ "alias" : " CVE-2019-1234"} ],
372+ "aliases" : [" CVE-2019-1234", "GMS-1234-4321" ],
371373 }
372374 ],
373375 }
0 commit comments