Sha256: dd84e1a031da5a3e78c162dd6a40f86f17a49ab2c95195a26f4987d0071dee5c

Contents?: true

Size: 347 Bytes

Versions: 38

Compression:

Stored size: 347 Bytes

Contents

require 'common'

class TestKnownHosts < Test::Unit::TestCase

  def test_key_for_when_all_hosts_are_recognized
    source = File.join(File.dirname(__FILE__),"known_hosts/github")
    kh = Net::SSH::KnownHosts.new(source)
    keys = kh.keys_for("github.com")
    assert_equal(1, keys.count)
    assert_equal("ssh-rsa", keys[0].ssh_type)
  end

end

Version data entries

38 entries across 36 versions & 8 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/net-ssh-2.9.1/test/test_known_hosts.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/net-ssh-2.9.1/test/test_known_hosts.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/net-ssh-2.9.1/test/test_known_hosts.rb
net-ssh-2.9.4 test/test_known_hosts.rb
net-ssh-2.9.4.rc1 test/test_known_hosts.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/net-ssh-2.9.2/test/test_known_hosts.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/net-ssh-2.9.2/test/test_known_hosts.rb
net-ssh-2.10.0.beta1 test/test_known_hosts.rb
net-ssh-2.9.3.beta1 test/test_known_hosts.rb
net-ssh-2.9.2 test/test_known_hosts.rb
net-ssh-2.9.2.rc3 test/test_known_hosts.rb
net-ssh-2.9.2.rc2 test/test_known_hosts.rb
net-ssh-2.9.2.rc1 test/test_known_hosts.rb
net-ssh-2.9.2.beta test/test_known_hosts.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/net-ssh-2.9.1/test/test_known_hosts.rb
net-ssh-2.9.1 test/test_known_hosts.rb
net-ssh-2.9.0 test/test_known_hosts.rb
net-ssh-2.8.0 test/test_known_hosts.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/net-ssh-2.6.8/test/test_known_hosts.rb
net-ssh-2.7.0 test/test_known_hosts.rb