wazuh-ruleset
wazuh-ruleset copied to clipboard
Bugs in runtest.py script
Hello team!
I tested Ruleset and I have noted two bugs in runtest.py
script:
- When a test fails
test_decoders.xml
andtest_ruleset.xml
files don't remove. I think it is due the functionrun
end with error message.
https://github.com/wazuh/wazuh-ruleset/blob/725a0155cfde0a849729d9d174f03e1453e31242/tools/rules-testing/runtests.py#L99-L127
- We can't input a test file because it doesn't execute the test. It due lines 136-142 aren't tab correctly. https://github.com/wazuh/wazuh-ruleset/blob/725a0155cfde0a849729d9d174f03e1453e31242/tools/rules-testing/runtests.py#L129-L142
Best regards, Eva