Don't allow booleans for root proxy config
Setting it to a false or true doesn't affect the config so shouldn't be allowed. true/false are for role level configurations. Fixes: https://github.com/basecamp/kamal/issues/1120
This commit is contained in:
@@ -38,6 +38,13 @@ class ConfigurationProxyTest < ActiveSupport::TestCase
|
||||
assert_not config.proxy.ssl?
|
||||
end
|
||||
|
||||
test "false not allowed" do
|
||||
@deploy[:proxy] = false
|
||||
assert_raises(Kamal::ConfigurationError, "proxy: should be a hash") do
|
||||
config.proxy
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def config
|
||||
Kamal::Configuration.new(@deploy)
|
||||
|
||||
Reference in New Issue
Block a user