Skip to content

Commit

Permalink
tests cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sabban committed Nov 6, 2024
1 parent 2270a7e commit 005aa09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 7 additions & 2 deletions t/01lua_config.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ __DATA__
load_module /usr/share/nginx/modules/ndk_http_module.so;
load_module /usr/share/nginx/modules/ngx_http_lua_module.so;
--- http
--- http_config
lua_package_path "./lib/?.lua;;";
lua_shared_dict crowdsec_cache 50m;
# luacov -r lcov
# genhtml luacov.report.out -o destination_directory/
init_by_lua_block {
cs = require "crowdsec"
local ok, err = cs.init("/etc/crowdsec/bouncers/crowdsec-nginx-bouncer.conf", "crowdsec-nginx-bouncer/v1.0.8")
local ok, err = cs.init("t/conf_t/01_conf_crowdsec_nginx_bouncer.conf", "crowdsec-nginx-bouncer/v1.0.8")
if ok == nil then
ngx.log(ngx.ERR, "[Crowdsec] " .. err)
error()
Expand Down
5 changes: 0 additions & 5 deletions t/02live.t
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ init_by_lua_block
access_by_lua_block {
local cs = require "crowdsec"
cs.Allow(ngx.var.remote_addr)
if ngx.var.unix == "1" then
ngx.log(ngx.DEBUG, "[Crowdsec] Unix socket request ignoring...")
else
cs.Allow(ngx.var.remote_addr)
end
}

server {
Expand Down

0 comments on commit 005aa09

Please sign in to comment.