Move static config test

This commit is contained in:
Donal McBreen
2023-08-31 09:52:58 +01:00
parent 782b1979ab
commit 4491867080
2 changed files with 0 additions and 11 deletions

View File

@@ -4,7 +4,6 @@ class Kamal::Commands::Traefik::Static < Kamal::Commands::Base
def initialize(config, role: nil)
super(config)
@static_config = Kamal::Configuration::Traefik::Static.new(config: config)
@dynamic_config = Kamal::Configuration::Traefik::Dynamic.new(config: config, role: role)
end
def run
@@ -67,9 +66,5 @@ class Kamal::Commands::Traefik::Static < Kamal::Commands::Base
def docker_entrypoint_args
docker :inspect, "-f '{{index .Args 1 }}'", :traefik
end
def boot_check?
dynamic_config.boot_check?
end
end

View File

@@ -177,12 +177,6 @@ class CommandsTraefikStaticTest < ActiveSupport::TestCase
new_command.follow_logs(host: @config[:servers].first, grep: 'hello!')
end
test "env_file" do
@config[:traefik]["env"] = { "secret" => %w[EXAMPLE_API_KEY] }
assert_equal "EXAMPLE_API_KEY=456\n", new_command.env_file
end
test "make_env_directory" do
assert_equal "mkdir -p .kamal/env/traefik", new_command.make_env_directory.join(" ")
end