diff --git a/test/test_source.py b/test/test_source.py index cd2daf7..b9c3f31 100644 --- a/test/test_source.py +++ b/test/test_source.py @@ -624,5 +624,9 @@ def test_wolfi_convert(test_aqua_cg_json, test_aqua_wolfi_json): def test_vuln_location(): - vl = VulnerabilityLocation.from_values("cpe:2.3:a:pivotal_software:spring_framework:3.2.0:*:*:*:*:*:*:*", "3.2.0", "3.2.0", "", "") + vl = VulnerabilityLocation.from_values("cpe:2.3:a:pivotal_software:spring_framework:3.2.0:*:*:*:*:*:*:*", "3.2.0", + "3.2.0", "", "") assert vl.version == "3.2.0" + vl = VulnerabilityLocation.from_values("cpe:2.3:a:org.springframework:spring-web:*:*:*:*:*:*:*:*", "5.0.0.RC2", + "*", "", "5.0.0.RC3") + assert vl.version == ">=5.0.0.RC2-<5.0.0.RC3"