mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
fixed: 测试文件错误
This commit is contained in:
parent
6fb41c9e4e
commit
1f18facad0
@ -14,7 +14,7 @@ our $HttpConfig = <<'_EOC_';
|
|||||||
}
|
}
|
||||||
_EOC_
|
_EOC_
|
||||||
|
|
||||||
$HttpConfig = sprintf($HttpConfig, $ENV{PWD}, $ENV{PWD});
|
$HttpConfig = sprintf($HttpConfig, $ENV{PWD}, $ENV{PWD}, $ENV{PWD});
|
||||||
|
|
||||||
our $LocationConfig = <<'_EOC_';
|
our $LocationConfig = <<'_EOC_';
|
||||||
location /t {
|
location /t {
|
||||||
@ -46,7 +46,7 @@ run_tests();
|
|||||||
|
|
||||||
__DATA__
|
__DATA__
|
||||||
|
|
||||||
=== TEST 1: integration test blocked
|
=== TEST 1: integration passed
|
||||||
--- http_config eval: $::HttpConfig
|
--- http_config eval: $::HttpConfig
|
||||||
--- config eval: $::LocationConfig
|
--- config eval: $::LocationConfig
|
||||||
--- request
|
--- request
|
||||||
@ -55,3 +55,11 @@ aaaaaaaaa=aaaaaa
|
|||||||
--- error_code: 200
|
--- error_code: 200
|
||||||
--- response_body_like eval
|
--- response_body_like eval
|
||||||
"passed"
|
"passed"
|
||||||
|
|
||||||
|
=== TEST 2: integration test blocked
|
||||||
|
--- http_config eval: $::HttpConfig
|
||||||
|
--- config eval: $::LocationConfig
|
||||||
|
--- request
|
||||||
|
POST /t/shell.php?injection=/etc/passwd
|
||||||
|
aaaaaaaaa=aaaaaa
|
||||||
|
--- error_code: 403
|
||||||
|
Loading…
x
Reference in New Issue
Block a user