blob: a3456f5acc820680fc96b329ba78d4e170d3a2f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require_relative 'common'
require 'net/ssh'
class TestKeyExchange < NetSSHTest
include IntegrationTestHelpers
Net::SSH::Transport::Algorithms::DEFAULT_ALGORITHMS[:kex].each do |kex|
define_method("test_kex_#{kex}") do
ret = Net::SSH.start("localhost", "net_ssh_1", password: 'foopwd', kex: kex) do |ssh|
ssh.exec! "echo 'foo'"
end
assert_equal "foo\n", ret
assert_equal 0, ret.exitstatus
end
end
end
|