add support for ExternalName service type in dynamic mode
This commit is contained in:
parent
bdb5ddc473
commit
d4faf68416
13 changed files with 316 additions and 18 deletions
16
build/busted
16
build/busted
|
|
@ -1,16 +0,0 @@
|
|||
#!/usr/bin/env resty
|
||||
|
||||
local ffi = require("ffi")
|
||||
|
||||
-- without this we get errors such as "attempt to redefine XXX"
|
||||
local old_cdef = ffi.cdef
|
||||
local exists = {}
|
||||
ffi.cdef = function(def)
|
||||
if exists[def] then
|
||||
return
|
||||
end
|
||||
exists[def] = true
|
||||
return old_cdef(def)
|
||||
end
|
||||
|
||||
require "busted.runner"({ standalone = false })
|
||||
|
|
@ -25,4 +25,4 @@ resty \
|
|||
--shdict "configuration_data 5M" \
|
||||
--shdict "balancer_ewma 1M" \
|
||||
--shdict "balancer_ewma_last_touched_at 1M" \
|
||||
./build/busted ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/
|
||||
./rootfs/etc/nginx/lua/test/run.lua ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue