From 1804dfbd54977d403ac90ed1c1d308a525fc519b Mon Sep 17 00:00:00 2001 From: Elvin Efendi Date: Wed, 2 Oct 2019 14:10:41 -0400 Subject: [PATCH] run lua plugin tests --- .luacheckrc | 2 +- build/test-lua.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index e7fb65c82b..5d16ac1e3f 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -2,7 +2,7 @@ std = 'ngx_lua' globals = { '_TEST' } -exclude_files = {'./rootfs/etc/nginx/lua/test/**/*.lua'} +exclude_files = {'./rootfs/etc/nginx/lua/test/**/*.lua', './rootfs/etc/nginx/lua/plugins/**/test/**/*.lua'} files["rootfs/etc/nginx/lua/lua_ingress.lua"] = { ignore = { "122" }, -- TODO(elvinefendi) figure out why this does not work diff --git a/build/test-lua.sh b/build/test-lua.sh index ce2cd60048..e3857818ac 100755 --- a/build/test-lua.sh +++ b/build/test-lua.sh @@ -31,4 +31,4 @@ resty \ --shdict "balancer_ewma 1M" \ --shdict "balancer_ewma_last_touched_at 1M" \ --shdict "balancer_ewma_locks 512k" \ - ./rootfs/etc/nginx/lua/test/run.lua ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/ + ./rootfs/etc/nginx/lua/test/run.lua ${BUSTED_ARGS} ./rootfs/etc/nginx/lua/test/ ./rootfs/etc/nginx/lua/plugins/**/test