Imported Upstream version 2.5.11
[libapache-mod-security.git] / apache2 / t / regression / config / 00-load-modsec.t
1 {
2         type => "config",
3         comment => "module loaded",
4         match_log => {
5                 error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
6         },
7 },
8 {
9         type => "config",
10         comment => "minimal config",
11         conf => sub {
12                 # Open the minimal conf file, substituting the
13                 # relative log paths with full paths.
14                 open(C, "<$ENV{DIST_ROOT}/modsecurity.conf-minimal") or die "$!\n";
15                 (my $conf = join('', <C>)) =~ s#Log logs/#Log $ENV{TEST_SERVER_ROOT}/logs/#g;
16                 close C;
17
18                 return $conf;
19         },
20         match_log => {
21                 error => [ qr/ModSecurity for Apache.* configured\./, 10 ],
22         },
23 },