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

CRS_Tests.py is failing for all log contains #18

@frankdirosaiv

Description

@frankdirosaiv

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions