mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-05 05:27:35 +08:00
33 lines
494 B
Perl
33 lines
494 B
Perl
use t::APISix 'no_plan';
|
|
|
|
repeat_each(2);
|
|
log_level('info');
|
|
no_root_location();
|
|
|
|
run_tests();
|
|
|
|
__DATA__
|
|
|
|
=== TEST 1: not found
|
|
--- config
|
|
location /t {
|
|
content_by_lua_block {
|
|
local apisix = require("apisix")
|
|
apisix.rewrite_phase()
|
|
}
|
|
}
|
|
--- request
|
|
GET /t
|
|
--- error_code: 404
|
|
--- response_body_like eval
|
|
qr/404 Not Found/
|
|
|
|
|
|
|
|
=== TEST 2: default response
|
|
--- request
|
|
GET /not_found
|
|
--- error_code: 404
|
|
--- response_body_like eval
|
|
qr/404 Not Found/
|