Skip to content

Commit

Permalink
Update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1nb0rn committed May 2, 2024
1 parent 20f2a97 commit ef74e30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_eol_date.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ def test_search_mongodb_4_4_29(self):
self.maxDiff = None
query = 'cpe:2.3:a:mongodb:mongodb:4.4.29:*:*:*:*:*:*:*'
result = search_vulns.search_vulns(query=query, add_other_exploit_refs=False, is_good_cpe=True)
expected_result = {'status': 'eol', 'latest': '7.3.1', 'ref': 'https://endoflife.date/mongodb'}
expected_result = {'status': 'eol', 'latest': '7.3.2', 'ref': 'https://endoflife.date/mongodb'}
self.assertEqual(result[query]['version_status'], expected_result)

def test_search_mongodb_6_0_13(self):
self.maxDiff = None
query = 'cpe:2.3:a:mongodb:mongodb:6.0.13:*:*:*:*:*:*:*'
result = search_vulns.search_vulns(query=query, add_other_exploit_refs=False, is_good_cpe=True)
expected_result = {'status': 'outdated', 'latest': '7.3.1', 'ref': 'https://endoflife.date/mongodb'}
expected_result = {'status': 'outdated', 'latest': '7.3.2', 'ref': 'https://endoflife.date/mongodb'}
self.assertEqual(result[query]['version_status'], expected_result)

if __name__ == '__main__':
Expand Down

0 comments on commit ef74e30

Please sign in to comment.