Configurable Lines Number in Healthcheck Log Output

This commit is contained in:
Krzysztof Adamski
2023-09-06 10:54:30 +02:00
parent 2962f545b9
commit 8ddc484ce6
5 changed files with 15 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ class ConfigurationTest < ActiveSupport::TestCase
:volume_args=>["--volume", "/local/path:/container/path"],
:builder=>{},
:logging=>["--log-opt", "max-size=\"10m\""],
:healthcheck=>{ "path"=>"/up", "port"=>3000, "max_attempts" => 7, "exposed_port" => 3999, "cord" => "/tmp/kamal-cord" }}
:healthcheck=>{ "path"=>"/up", "port"=>3000, "max_attempts" => 7, "exposed_port" => 3999, "cord" => "/tmp/kamal-cord", "lines" => 50 }}
assert_equal expected_config, @config.to_h
end