Skip to content

Commit

Permalink
🐛 fix Bearer CLI missing Scan Type (#10654)
Browse files Browse the repository at this point in the history
  • Loading branch information
manuel-sommer authored Aug 1, 2024
1 parent 8404763 commit 1fb5e9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dojo/tools/bearer_cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from dojo.models import Finding


class BearerParser:
class BearerCLIParser:
"""
Bearer CLI tool is a SAST scanner for multiple languages
"""
Expand Down
6 changes: 3 additions & 3 deletions unittests/tools/test_bearer_cli_parser.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from django.test import TestCase

from dojo.models import Test
from dojo.tools.bearer_cli.parser import BearerParser
from dojo.tools.bearer_cli.parser import BearerCLIParser


class TestBearerParser(TestCase):

def test_bearer_parser_with_one_vuln_has_one_findings(self):
testfile = open("unittests/scans/bearer_cli/bearer_cli_one_vul.json")
parser = BearerParser()
parser = BearerCLIParser()
findings = parser.get_findings(testfile, Test())
testfile.close()
self.assertEqual(1, len(findings))
Expand All @@ -22,7 +22,7 @@ def test_bearer_parser_with_one_vuln_has_one_findings(self):

def test_bearer_parser_with_many_vuln_has_many_findings(self):
testfile = open("unittests/scans/bearer_cli/bearer_cli_many_vul.json")
parser = BearerParser()
parser = BearerCLIParser()
findings = parser.get_findings(testfile, Test())
testfile.close()
self.assertEqual(4, len(findings))

0 comments on commit 1fb5e9e

Please sign in to comment.