Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Mar 13, 2024
1 parent faadc58 commit d5777c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit d5777c6

Please sign in to comment.