-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow ssh log_level to be set - this will help to debug connection issues.
- Loading branch information
Showing
6 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,20 @@ class ConfigurationSshTest < ActiveSupport::TestCase | |
assert_equal "root", @config.ssh.options[:user] | ||
|
||
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "user" => "app" }) }) | ||
assert_equal "app", @config.ssh.options[:user] | ||
assert_equal "app", config.ssh_options[:user] | ||
assert_equal 4, config.ssh_options[:logger].level | ||
|
||
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "log_level" => "debug" }) }) | ||
assert_equal 0, config.ssh_options[:logger].level | ||
end | ||
|
||
test "ssh options with proxy host" do | ||
config = Mrsk::Configuration.new(@deploy.tap { |c| c.merge!(ssh: { "proxy" => "1.2.3.4" }) }) | ||
assert_equal "[email protected]", @config.ssh.options[:proxy].jump_proxies | ||
assert_equal "[email protected]", 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" => "[email protected]" }) }) | ||
assert_equal "[email protected]", @config.ssh.options[:proxy].jump_proxies | ||
assert_equal "[email protected]", config.ssh.options[:proxy].jump_proxies | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters