-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cmd): fix kong cli not printing some debug level error log
- Loading branch information
Showing
2 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
local helpers = require "spec.helpers" | ||
local meta = require "kong.meta" | ||
|
||
describe("kong cli verbose output", function() | ||
it("--vv outputs debug level log", function() | ||
local _, stderr, stdout = assert(helpers.kong_exec("version --vv")) | ||
-- globalpatches debug log will be printed by upper level resty command that runs kong.cmd | ||
assert.matches("installing the globalpatches", stderr) | ||
assert.matches("Kong: " .. meta._VERSION, stdout) | ||
end) | ||
end) |