-
Notifications
You must be signed in to change notification settings - Fork 288
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
Conversation
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Thanks for the submission. Please update the CHANGELOG.md with your change and we'll get this merged in. |
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.
@jertel sorry I got the wrong release, thanks you for the correction |
Description
Checklist
make test-docker
with my changes.