Reverted network arguments everywhere except to accessory config

This commit is contained in:
Igor Alexandrov
2024-10-09 10:00:49 +04:00
parent 08dacd2745
commit da2a543cbc
11 changed files with 3 additions and 69 deletions

View File

@@ -217,15 +217,6 @@ class ConfigurationTest < ActiveSupport::TestCase
assert_equal [ "--log-driver", "\"local\"", "--log-opt", "max-size=\"100m\"", "--log-opt", "max-file=\"5\"" ], config.logging_args
end
test "network_args default" do
assert_equal [ "--network", "kamal" ], @config.network_args
end
test "network_args with configured options" do
config = Kamal::Configuration.new(@deploy.tap { |c| c.merge!(network: "custom") })
assert_equal [ "--network", "custom" ], config.network_args
end
test "erb evaluation of yml config" do
config = Kamal::Configuration.create_from config_file: Pathname.new(File.expand_path("fixtures/deploy.erb.yml", __dir__))
assert_equal "my-user", config.registry.username