Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3cf1701

Browse files
author
Felipe Zimmerle
committed
test: Adds loading tests also to nginx.
It was trying to match "ModSecurity for Apache.* configured". This patchmakes it expect for "ModSecurity for nginx.* configured" while nginxversion is being used/tested.
1 parent795d6a6 commit3cf1701

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎tests/regression/config/00-load-modsec.t‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
type=>"config",
33
comment=>"module loaded",
44
match_log=> {
5-
error=> [ qr/ModSecurityfor Apache.* configured\./,10 ],
5+
error=> {
6+
apache=> [ qr/ModSecurityfor Apache.* configured\./,10 ],
7+
nginx=> [ qr/ModSecurityfor nginx.* configured\./,10 ],
8+
},
69
},
710
},
811
{
@@ -18,6 +21,9 @@
1821
return$conf;
1922
},
2023
match_log=> {
21-
error=> [ qr/ModSecurityfor Apache.* configured\./,10 ],
24+
error=> {
25+
apache=> [ qr/ModSecurityfor Apache.* configured\./,10 ],
26+
nginx=> [ qr/ModSecurityfor nginx.* configured\./,10 ],
27+
},
2228
},
2329
},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp