Skip to content

Commit

Permalink
tests(conf): disable debug_mail dynamic log_level test
Browse files Browse the repository at this point in the history
Dynamically enabling the extended debug log levels requires a
new version of lua-kong-nginx-module which incorporates
Kong/lua-kong-nginx-module#87
  • Loading branch information
hishamhm committed Apr 9, 2024
1 parent f55a8dc commit e8defcb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/02-integration/04-admin_api/22-debug_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ describe("Admin API - Kong debug route with strategy #" .. strategy, function()
-- from timers pre-created by timer-ng (datadog plugin)
assert.logfile().has.no.line("failed to send data to", true, 2)

--[[
-- TODO: needs https://github.com/Kong/lua-kong-nginx-module/pull/87
-- can change to Nginx fine-grained debug levels (debug_mail)
res = assert(helpers.admin_client():send {
method = "PUT",
Expand All @@ -194,6 +197,8 @@ describe("Admin API - Kong debug route with strategy #" .. strategy, function()
assert.logfile().has.line(fmt("log level changed to %s", ngx.DEBUG_MAIL), true, 2)
--]]

-- go back to default (debug)
res = assert(helpers.admin_client():send {
method = "PUT",
Expand Down

0 comments on commit e8defcb

Please sign in to comment.