Move static config test
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user