@@ -583,50 +583,56 @@ def test_api_with_lesser_and_greater_fixed_by_packages(self):
583
583
"next_non_vulnerable_version" : "2.14.0-rc1" ,
584
584
"latest_non_vulnerable_version" : "2.14.0-rc1" ,
585
585
"affected_by_vulnerabilities" : [
586
- {
587
- "url" : "http://testserver/api/vulnerabilities/{0}" .format (self .vul3 .id ),
588
- "vulnerability_id" : "VCID-vul3-vul3-vul3" ,
589
- "summary" : "This is VCID-vul3-vul3-vul3" ,
590
- "references" : [],
591
- "fixed_packages" : [],
592
- "aliases" : ["CVE-2021-46877" , "GHSA-3x8x-79m2-3w2w" ],
593
- "resource_url" : "http://testserver/vulnerabilities/VCID-vul3-vul3-vul3" ,
594
- }
595
- ],
596
- "fixing_vulnerabilities" : [
597
586
{
598
587
"url" : "http://testserver/api/vulnerabilities/{0}" .format (self .vul1 .id ),
599
588
"vulnerability_id" : "VCID-vul1-vul1-vul1" ,
600
589
"summary" : "This is VCID-vul1-vul1-vul1" ,
601
590
"references" : [],
602
591
"fixed_packages" : [
603
592
{
604
- "url" : "http://testserver/api/packages/{0}" .format (
605
- self .pkg_2_12_6_1 .id
606
- ),
607
- "purl" : "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.12.6.1" ,
593
+ "url" : "http://testserver/api/packages/{0}" .format (self .pkg_2_13_2 .id ),
594
+ "purl" : "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.2" ,
608
595
"is_vulnerable" : True ,
609
596
"affected_by_vulnerabilities" : [
610
597
{"vulnerability" : "VCID-vul2-vul2-vul2" }
611
598
],
612
- "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.12.6.1" ,
599
+ "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.2" ,
600
+ }
601
+ ],
602
+ "aliases" : ["CVE-2020-36518" , "GHSA-57j2-w4cx-62h2" ],
603
+ "resource_url" : "http://testserver/vulnerabilities/VCID-vul1-vul1-vul1" ,
604
+ }
605
+ ],
606
+ "fixing_vulnerabilities" : [
607
+ {
608
+ "url" : "http://testserver/api/vulnerabilities/{0}" .format (self .vul3 .id ),
609
+ "vulnerability_id" : "VCID-vul3-vul3-vul3" ,
610
+ "summary" : "This is VCID-vul3-vul3-vul3" ,
611
+ "references" : [],
612
+ "fixed_packages" : [
613
+ {
614
+ "url" : "http://testserver/api/packages/{0}" .format (self .pkg_2_12_6 .id ),
615
+ "purl" : "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.12.6" ,
616
+ "is_vulnerable" : False ,
617
+ "affected_by_vulnerabilities" : [],
618
+ "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.12.6" ,
613
619
},
614
620
{
615
- "url" : "http://testserver/api/packages/{0}" .format (self .pkg_2_13_2 .id ),
616
- "purl" : "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.2 " ,
621
+ "url" : "http://testserver/api/packages/{0}" .format (self .pkg_2_13_1 .id ),
622
+ "purl" : "pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.1 " ,
617
623
"is_vulnerable" : True ,
618
624
"affected_by_vulnerabilities" : [
619
- {"vulnerability" : "VCID-vul2-vul2-vul2 " }
625
+ {"vulnerability" : "VCID-vul1-vul1-vul1 " }
620
626
],
621
- "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.2 " ,
627
+ "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.1 " ,
622
628
},
623
629
],
624
- "aliases" : ["CVE-2020-36518 " , "GHSA-57j2-w4cx-62h2 " ],
625
- "resource_url" : "http://testserver/vulnerabilities/VCID-vul1-vul1-vul1 " ,
630
+ "aliases" : ["CVE-2021-46877 " , "GHSA-3x8x-79m2-3w2w " ],
631
+ "resource_url" : "http://testserver/vulnerabilities/VCID-vul3-vul3-vul3 " ,
626
632
}
627
633
],
628
- "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.1" ,
629
634
"risk_score" : None ,
635
+ "resource_url" : "http://testserver/packages/pkg:maven/com.fasterxml.jackson.core/jackson-databind@2.13.1" ,
630
636
}
631
637
632
638
assert response == expected
0 commit comments