Configurable Log Lines Number in Healthcheck Log Output
This commit is contained in:
@@ -93,7 +93,7 @@ class CommandsHealthcheckTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test "logs with custom lines number" do
|
||||
@config[:healthcheck] = { "lines" => 150 }
|
||||
@config[:healthcheck] = { "log_lines" => 150 }
|
||||
assert_equal \
|
||||
"docker container ls --all --filter name=^healthcheck-app-123$ --quiet | xargs docker logs --tail 150 2>&1",
|
||||
new_command.logs.join(" ")
|
||||
|
||||
Reference in New Issue
Block a user