diff options
author | Miklos Fazekas <mfazekas@szemafor.com> | 2018-05-30 12:06:47 +0200 |
---|---|---|
committer | Miklos Fazekas <mfazekas@szemafor.com> | 2018-05-30 12:06:47 +0200 |
commit | 4acb9ca59740fbc11415fb204a09e0d3d2ad43ad (patch) | |
tree | 83fc0ee11738ef68d4aefc386eb40d5d37330274 | |
parent | 45d651b08fc01537b94bba22af6c33fbdab8d670 (diff) | |
download | net-ssh-cert-type-fix.tar.gz |
Added test for host_key_formatcert-type-fix
-rw-r--r-- | test/transport/test_algorithms.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/transport/test_algorithms.rb b/test/transport/test_algorithms.rb index 41adc4d..4d428ff 100644 --- a/test/transport/test_algorithms.rb +++ b/test/transport/test_algorithms.rb @@ -1,4 +1,5 @@ require_relative '../common' +require 'logger' require 'net/ssh/transport/algorithms' module Transport @@ -268,6 +269,11 @@ module Transport assert string_io.string.include?(%(unsupported algorithm: `["d"]')) end + def test_host_key_format + algorithms(host_key: 'ssh-rsa-cert-v01@openssh.com').instance_eval { @host_key = 'ssh-rsa-cert-v01@openssh.com' } + assert_equal 'ssh-rsa', algorithms.host_key_format + end + private def install_mock_key_exchange(buffer, options={}) |