From 884eda920e7b61eebdd279d0da83b7dfda13376c Mon Sep 17 00:00:00 2001 From: potatso Date: Tue, 4 Jul 2023 12:53:26 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E6=94=B9do=5Flog=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- t/integration_block_req_header.t | 3 ++- t/integration_block_resp_header.t | 1 + t/integration_passed.t | 1 + t/integration_with_coreruleset.t | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/t/integration_block_req_header.t b/t/integration_block_req_header.t index af56a7f..d505380 100644 --- a/t/integration_block_req_header.t +++ b/t/integration_block_req_header.t @@ -32,6 +32,7 @@ our $LocationConfig = <<'_EOC_'; log_by_lua_block{ local coraza = require "resty.coraza" + coraza.do_log() coraza.do_free() } } @@ -49,7 +50,7 @@ __DATA__ --- more_headers User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.44 --- request -POST /t/shell.php +POST /t/shell.php?a=11 aaaaaaaaa=aaaaaa --- error_code: 452 --- response_body_like eval diff --git a/t/integration_block_resp_header.t b/t/integration_block_resp_header.t index 63e2a27..db119ae 100644 --- a/t/integration_block_resp_header.t +++ b/t/integration_block_resp_header.t @@ -32,6 +32,7 @@ our $LocationConfig = <<'_EOC_'; log_by_lua_block{ local coraza = require "resty.coraza" + coraza.do_log() coraza.do_free() } } diff --git a/t/integration_passed.t b/t/integration_passed.t index c7978c6..a627d46 100644 --- a/t/integration_passed.t +++ b/t/integration_passed.t @@ -31,6 +31,7 @@ our $LocationConfig = <<'_EOC_'; log_by_lua_block{ local coraza = require "resty.coraza" + coraza.do_log() coraza.do_free() } } diff --git a/t/integration_with_coreruleset.t b/t/integration_with_coreruleset.t index e0eeffc..9e7f63c 100644 --- a/t/integration_with_coreruleset.t +++ b/t/integration_with_coreruleset.t @@ -35,6 +35,7 @@ our $LocationConfig = <<'_EOC_'; log_by_lua_block{ local coraza = require "resty.coraza" + coraza.do_log() coraza.do_free() } }