From 3cf1701794f62437b29fd578ea868f5dfaa2aeb6 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 9 Jan 2014 12:13:47 -0800 Subject: [PATCH] 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. --- tests/regression/config/00-load-modsec.t | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/regression/config/00-load-modsec.t b/tests/regression/config/00-load-modsec.t index 9c6ecc5f..222120da 100644 --- a/tests/regression/config/00-load-modsec.t +++ b/tests/regression/config/00-load-modsec.t @@ -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 ], + }, }, },