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 a path exist check for rules_folder config var #519

Merged
merged 8 commits into from
Oct 28, 2021

Conversation

AntoineBlaud
Copy link
Contributor

Description

Checklist

  • I have reviewed the contributing guidelines.
  • I have successfully run make test-docker with my changes.
  • I have manually tested all relevant modes of the change in this PR.

@@ -552,6 +552,8 @@ def get_names(self, conf, use_rule=None):
rule_files = []
if 'scan_subdirectories' in conf and conf['scan_subdirectories']:
for ruledir in rule_folders:
if not os.path.exists(ruledir):
raise EAException('Specified rule_folder does not exist: %s ' % ruledir)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a test case for this branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added a simple test for invalid path, tests for valid path already exists

@jertel
Copy link
Owner

jertel commented Oct 28, 2021

Thanks for the submission. Please update the CHANGELOG.md with your change and we'll get this merged in.

AntoineBlaud and others added 3 commits October 28, 2021 15:37
Moved to upcoming release section.
Remove line item for adding a unit test since it's implied with the actual PR change.
Added link to PR.
@AntoineBlaud
Copy link
Contributor Author

@jertel sorry I got the wrong release, thanks you for the correction

@jertel jertel merged commit 18f435f into jertel:master Oct 28, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants