Skip to content

Commit

Permalink
fix(test): don't expect specific status code in queue shutdown test (#…
Browse files Browse the repository at this point in the history
…11606) (#11611)

konghq.com:80 no longer responds with 301 to POST requests, but as
we're not interested in the specific status code anyway, remove it
from the expected string.  We only need to make sure that an attempt
was made to contact the log server (konghq.com).

KAG-2612

(cherry picked from commit 03bfc29)

Co-authored-by: Hans Hübner <hans.huebner@gmail.com>
  • Loading branch information
team-gateway-bot and hanshuebner authored Sep 20, 2023
1 parent 9b6674f commit 0217082
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/02-integration/15-queues/01-shutdown_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ for _, strategy in helpers.each_strategy() do
local res, err = helpers.stop_kong(nil, true, nil, "QUIT")
assert(res, err)

assert.logfile().has.line("handler could not process entries: request to konghq.com:80 returned status code 301")
assert.logfile().has.line("handler could not process entries: request to konghq.com:80 returned status code")
end)
end)
end

0 comments on commit 0217082

Please sign in to comment.