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

Supression #20

Merged
merged 7 commits into from
Sep 27, 2022
Merged

Supression #20

merged 7 commits into from
Sep 27, 2022

Conversation

marwin1991
Copy link
Collaborator

No description provided.

@marwin1991
Copy link
Collaborator Author

@angrymeir when you will have some time can you take a look at this change ? :)

@marwin1991
Copy link
Collaborator Author

@angrymeir

@marwin1991
Copy link
Collaborator Author

@angrymeir Will you find a time this week to look at this change?

Copy link
Owner

@angrymeir angrymeir left a comment

Choose a reason for hiding this comment

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

Wow! This looks super awesome - great work!!! Really, thats some next level shit 🎉


def test_get_config_no_file(self):
# given:
input_config_path = "resources/test_config/test_get_config_no_file/ss2ju-config.yml"
Copy link
Owner

@angrymeir angrymeir Sep 22, 2022

Choose a reason for hiding this comment

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

  • The actual path here is resources/test_config/test_get_config_empty_file/ss2ju-config.yml :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have added empty test_get_config_no_file dir, and this test is checking if when file does not exist, the program should return empty config


# then:
expected = Config([Suppression('cwe', '2555'), Suppression('find_sec_bugs_type', 'SPRING_ENDPOINT')])
assert expected == config
Copy link
Owner

Choose a reason for hiding this comment

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

I guess this assert statement is redundant, as assertEqual is based on "==" (see here). Or am I missing something?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, you are rigth :)

@angrymeir angrymeir marked this pull request as ready for review September 22, 2022 18:21
from junit_xml import TestSuite, TestCase

# is it correct import changed from .parser ? I've get error ImportError: attempted relative import with no known parent package
from secscanner2junit.config import Config
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@angrymeir is it corrent import?

@marwin1991
Copy link
Collaborator Author

@angrymeir :)

@angrymeir angrymeir merged commit 84646ed into main Sep 27, 2022
@angrymeir angrymeir deleted the 19-supression branch September 27, 2022 07:54
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.

None yet

2 participants