mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 08:51:29 +08:00
b7694e0701
* feature: mini example to load plugin.
24 lines
361 B
Perl
24 lines
361 B
Perl
use t::APIMeta 'no_plan';
|
|
|
|
repeat_each(2);
|
|
no_long_string();
|
|
log_level('info');
|
|
|
|
run_tests();
|
|
|
|
__DATA__
|
|
|
|
=== TEST 1: sanity
|
|
--- config
|
|
location /t {
|
|
content_by_lua_block {
|
|
local apimeta = require("apimeta")
|
|
apimeta.access()
|
|
}
|
|
}
|
|
--- request
|
|
GET /t
|
|
--- error_code: 404
|
|
--- response_body_like eval
|
|
qr/404 Not Found/
|