Traefik hosts can now be more than just web

This commit is contained in:
David Heinemeier Hansson
2023-01-20 13:38:57 +01:00
parent 2cb09be0cd
commit 8a32cc9c84
4 changed files with 21 additions and 9 deletions

View File

@@ -70,6 +70,14 @@ class ConfigurationTest < ActiveSupport::TestCase
assert_equal "1.1.1.1", @config_with_roles.primary_host
end
test "traefik hosts" do
assert_equal [ "1.1.1.1", "1.1.1.2" ], @config_with_roles.traefik_hosts
@deploy_with_roles[:servers]["workers"]["traefik"] = true
config = Mrsk::Configuration.new(@deploy_with_roles)
assert_equal [ "1.1.1.1", "1.1.1.2", "1.1.1.3", "1.1.1.4" ], config.traefik_hosts
end
test "version" do
assert_equal "123", @config.version