mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-14 08:51:29 +08:00
30 lines
631 B
Perl
30 lines
631 B
Perl
use t::APIMeta 'no_plan';
|
|
|
|
repeat_each(1);
|
|
no_long_string();
|
|
no_shuffle();
|
|
log_level('info');
|
|
|
|
run_tests;
|
|
|
|
__DATA__
|
|
|
|
=== TEST 1: sanity
|
|
--- config
|
|
location /t {
|
|
content_by_lua_block {
|
|
local encode_json = require "cjson.safe" .encode
|
|
local config = require("apimeta.comm.config").read()
|
|
|
|
ngx.say("etcd host: ", config.etcd.host)
|
|
ngx.say("etcd prefix: ", config.etcd.prefix)
|
|
ngx.say("plugins: ", encode_json(config.plugins))
|
|
}
|
|
}
|
|
--- request
|
|
GET /t
|
|
--- response_body
|
|
etcd host: http://127.0.0.1:2379
|
|
etcd prefix: /v2/keys
|
|
plugins: ["example_plugin"]
|