diff options
author | Jesse Sanford <jesse@jessesanford.com> | 2014-01-21 15:01:00 -0800 |
---|---|---|
committer | Jesse Sanford <jesse@jessesanford.com> | 2014-01-21 15:01:00 -0800 |
commit | 404e795f470099789d144f593cd0be2cf3ecfd0a (patch) | |
tree | b6fc4ce6ad6cfb70186bb3e0587a5ba880a986c0 | |
parent | 82e6cd36e1ac8efa7f17190ee974da882ab996b0 (diff) | |
download | net-ssh-404e795f470099789d144f593cd0be2cf3ecfd0a.tar.gz |
updated tests to match the default of not allowing hostbased auth
-rw-r--r-- | test/authentication/test_session.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/authentication/test_session.rb b/test/authentication/test_session.rb index ab233da..0cd9727 100644 --- a/test/authentication/test_session.rb +++ b/test/authentication/test_session.rb @@ -8,7 +8,7 @@ module Authentication include Net::SSH::Authentication::Constants def test_constructor_should_set_defaults - assert_equal %w(none publickey hostbased password keyboard-interactive), session.auth_methods + assert_equal %w(none publickey password keyboard-interactive), session.auth_methods assert_equal session.auth_methods, session.allowed_auth_methods end @@ -44,7 +44,6 @@ module Authentication end Net::SSH::Authentication::Methods::Publickey.any_instance.expects(:authenticate).with("next service", "username", "password").returns(false) - Net::SSH::Authentication::Methods::Hostbased.any_instance.expects(:authenticate).with("next service", "username", "password").returns(false) Net::SSH::Authentication::Methods::Password.any_instance.expects(:authenticate).with("next service", "username", "password").returns(false) Net::SSH::Authentication::Methods::KeyboardInteractive.any_instance.expects(:authenticate).with("next service", "username", "password").returns(false) Net::SSH::Authentication::Methods::None.any_instance.expects(:authenticate).with("next service", "username", "password").returns(false) |