Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix Bearer CLI missing Scan Type #10652 #10654

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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))
Loading