test: Adds loading tests also to nginx.

It was trying to match "ModSecurity for Apache.* configured". This patch
makes it expect for "ModSecurity for nginx.* configured" while nginx
version is being used/tested.
This commit is contained in:
Felipe Zimmerle 2014-01-09 12:13:47 -08:00
parent 795d6a64d2
commit 3cf1701794

View File

@ -2,7 +2,10 @@
type => "config",
comment => "module loaded",
match_log => {
error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
error => {
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
},
},
},
{
@ -18,6 +21,9 @@
return $conf;
},
match_log => {
error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
error => {
apache => [ qr/ModSecurity for Apache.* configured\./, 10 ],
nginx => [ qr/ModSecurity for nginx.* configured\./, 10 ],
},
},
},