Use single string-based proxy declaration

This commit is contained in:
David Heinemeier Hansson
2023-01-31 13:59:19 +01:00
committed by Chris de Bruin
parent 1fef6ba505
commit 71681cb8be
3 changed files with 24 additions and 24 deletions

View File

@@ -145,10 +145,15 @@ class ConfigurationTest < ActiveSupport::TestCase
end
test "ssh options with proxy host" do
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "proxy_host" => "1.2.3.4" }) })
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "proxy" => "1.2.3.4" }) })
assert_equal "root@1.2.3.4", @config.ssh_options[:proxy].jump_proxies
end
test "ssh options with proxy host and user" do
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "proxy" => "app@1.2.3.4" }) })
assert_equal "app@1.2.3.4", @config.ssh_options[:proxy].jump_proxies
end
test "master key" do
assert_equal "456", @config.master_key
end