mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-16 07:56:12 +03:00
25 lines
523 B
Perl
25 lines
523 B
Perl
### Tests for basic rule components
|
|
|
|
# SecAction
|
|
{
|
|
type => "config",
|
|
comment => "SecAction (override default)",
|
|
conf => qq(
|
|
SecRuleEngine On
|
|
SecDebugLog $ENV{DEBUG_LOG}
|
|
SecDebugLogLevel 4
|
|
SecAction "nolog"
|
|
),
|
|
match_log => {
|
|
-error => [ qr/ModSecurity: /, 1 ],
|
|
-audit => [ qr/./, 1 ],
|
|
debug => [ qr/Warning\. Unconditional match in SecAction\./, 1 ],
|
|
},
|
|
match_response => {
|
|
status => qr/^200$/,
|
|
},
|
|
request => new HTTP::Request(
|
|
GET => "http://$ENV{SERVER_NAME}:$ENV{SERVER_PORT}/test.txt",
|
|
),
|
|
},
|