mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-15 01:11:58 +08:00
26 lines
536 B
Perl
26 lines
536 B
Perl
use t::APISix 'no_plan';
|
|
|
|
repeat_each(2);
|
|
no_root_location();
|
|
|
|
run_tests;
|
|
|
|
__DATA__
|
|
|
|
=== TEST 1: sanity
|
|
--- config
|
|
location /t {
|
|
content_by_lua_block {
|
|
local encode_json = require "cjson.safe" .encode
|
|
local config = require("apisix.core").config.local_conf()
|
|
|
|
ngx.say("etcd host: ", config.etcd.host)
|
|
ngx.say("first plugin: ", encode_json(config.plugins[1]))
|
|
}
|
|
}
|
|
--- request
|
|
GET /t
|
|
--- response_body
|
|
etcd host: http://127.0.0.1:2379
|
|
first plugin: "example-plugin"
|