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

Feat/findings level #16

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

Feat/findings level #16

wants to merge 2 commits into from

Conversation

andywaltlova
Copy link
Collaborator

Introduces new findings_level param in script output.

TBD on exact values, related issue.

update schema
update tests

Signed-off-by: Andrea Waltlova <[email protected]>
)
assert output.findings_level == 7 if "error" in groups else 5
else: # high, medium, low and info priorities
# TODO: how about low, medium and high severity? Upgrade can proceed in those cases but should findings level change?
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@@ -95,3 +88,6 @@ def test_gather_report_files_not_exist(mock_exists):
assert output.report != ""
assert output.report_json != ""
assert output.message != ""

# TODO: Should it be different when we for some reason can't find the report files?
assert output.findings_level == 1
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

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.

1 participant