Skip to content
This repository has been archived by the owner on Aug 7, 2020. It is now read-only.

CRS_Tests.py is failing for all log contains #18

Open
frankdirosaiv opened this issue Dec 12, 2018 · 1 comment
Open

CRS_Tests.py is failing for all log contains #18

frankdirosaiv opened this issue Dec 12, 2018 · 1 comment

Comments

@frankdirosaiv
Copy link

Big fan of this library of tests, but I've run into some problems running them. The CRS_Tests.py is creating a regex for a date format in the logs. Modsecurity 3.0 logs don't seem to match this format in my error.log file. Modsecurity (for me?) is in the format %Y/%m/%d %H:%M:%S. But in CRS_Tests.py, we compare against self.start and self.end which has milliseconds. I cannot find a way to compare log_date to self.start and self.end. Has anyone come across this issue before?

@csanders-git
Copy link
Contributor

This repo isn't supported by the CRS team anymore as none of us have access to it. However, we've inlined our test cases into the util/regreasion-test folder of CRS. As per v3.0, you can find a config in this pr SpiderLabs/owasp-modsecurity-crs#1113. We do not currently test CRS against 3.x as it's been unstable but it is something we'll be adding in CRS 3.2. let me know if you have any concerns by reaching out on our CRS repo. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants