Description
LogReaper currently has zero automated tests. We need a basic test suite that validates the regex pattern matching engine against known log samples.
Details
- Create a
tests/ directory with sample log files (sanitized/synthetic)
- Write a test runner (shell script or C test harness)
- Test cases needed:
- SSH brute force detection in auth.log samples
- SQL injection detection in Apache/Nginx access logs
- Privilege escalation pattern matching
- IOC extraction (IPs, domains, hashes)
- False positive verification (benign log lines that should NOT trigger alerts)
- Add a
make test target to the Makefile
- Integrate with CI workflow
Acceptance Criteria