Replies: 1 comment 3 replies
-
The overwrites was added 4-5 years ago: So I can't answer why this was done. The commit message doesn't fully align with the committed code. If removing those 3 lines doesn't cause a problem for users not customizing the rule loader, and solves the issue you're experiencing, then perhaps they need to be removed permanently. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're creating a custom rule loader and everything works great except for when I test the rules. The rules need to pass through this loader in order to be valid but it seems the code in
test_rules.py
is locking the rules loader to "file" as seen below:test_rules.py lines 443 - 449
This is hardcoding the loader as the file loader so it completely ignores when I have
rules_loader
configured in the main config file. I also don't see an option in the command line arguments to specify a loader. Was it intentional to hardcode the rule loader? We can't properly test rules (specifically the alerting aspect) without being able to specify a different loaderBeta Was this translation helpful? Give feedback.
All reactions