Sha256: a1141eba5fdd1eb28e1497d09acd4e2e12c4e6df70cd3e75eeede5a85284fd14
Contents?: true
Size: 907 Bytes
Versions: 3
Compression:
Stored size: 907 Bytes
Contents
require 'helper' module SSHKit module Backend class TestNetssh < UnitTest def backend @backend ||= Netssh end def test_net_ssh_configuration_options backend.configure do |ssh| ssh.pty = true ssh.connection_timeout = 30 ssh.connection_timeout = 30 ssh.ssh_options = { keys: %w(/home/user/.ssh/id_rsa), forward_agent: false, auth_methods: %w(publickey password) } end assert_equal 30, backend.config.connection_timeout assert_equal true, backend.config.pty assert_equal %w(/home/user/.ssh/id_rsa), backend.config.ssh_options[:keys] assert_equal false, backend.config.ssh_options[:forward_agent] assert_equal %w(publickey password), backend.config.ssh_options[:auth_methods] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sshkit-1.1.0 | test/unit/backends/test_netssh.rb |
sshkit-1.0.0 | test/unit/backends/test_netssh.rb |
sshkit-0.0.34 | test/unit/backends/test_netssh.rb |