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

Add Additional testing on functionality of the Bandit tool #1005 #1

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

OClark23
Copy link
Collaborator

@OClark23 OClark23 commented Apr 3, 2023

DESCRIPTION
Here we added two additional assertions to verify that the output contains the strings "Files skipped (0):" and "No issues identified. These two strings indicate that no files were skipped during the scan and no issues were identified, respectively, which are expected when there are no new candidates found compared to the baseline

SEVERITY: Low

Testing before implementation
Test, when there are new candidates, found compared with those in the baseline. This should return the new candidate details along with the candidates from the baseline.

Test when a candidate has a # nosec comment added and that candidate was previously flagged as an issue in the baseline. This should not return that candidate in the results.

Test when a candidate has been fixed in the code and should no longer be flagged as an issue in the baseline. This should not return that candidate in the results.

assert the initial baseline found results, modify the baseline file to add new candidates,assert there were new results (new candidates found)
@OClark23
Copy link
Collaborator Author

OClark23 commented Apr 3, 2023

@rkuczer @Omarosman2000

@OClark23 OClark23 changed the title Update test_baseline.py Add Additional testing on functionality of the Bandit tool #1005 Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants