Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/functional/backends/test_netssh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def test_ssh_option_merge
capture(:uname)
host_ssh_options = host.ssh_options
end.run
assert_equal [:forward_agent, *keepalive_opt.keys, :known_hosts, :logger, :password_prompt].sort, host_ssh_options.keys.sort
# net-ssh >= 8.1 also sets :non_interactive when it can't prompt (e.g. stdin is not a TTY on CI)
assert_equal [:forward_agent, *keepalive_opt.keys, :known_hosts, :logger, :password_prompt].sort, (host_ssh_options.keys - [:non_interactive]).sort
assert_equal false, host_ssh_options[:forward_agent]
assert_equal keepalive_opt.values.first, host_ssh_options[keepalive_opt.keys.first]
assert_instance_of SSHKit::Backend::Netssh::KnownHosts, host_ssh_options[:known_hosts]
Expand Down