From 4acb9ca59740fbc11415fb204a09e0d3d2ad43ad Mon Sep 17 00:00:00 2001 From: Miklos Fazekas Date: Wed, 30 May 2018 12:06:47 +0200 Subject: Added test for host_key_format --- test/transport/test_algorithms.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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={}) -- cgit v1.2.1