summaryrefslogtreecommitdiff
path: root/test/integration/test_password.rb
diff options
context:
space:
mode:
authorMiklós Fazekas <mfazekas@szemafor.com>2023-03-22 10:55:26 +0100
committerGitHub <noreply@github.com>2023-03-22 10:55:26 +0100
commit00c38ab3569dea3177a203af60c1006e18f6915f (patch)
tree1b4b57e5657be27c83bc271b84e5850cdce4629c /test/integration/test_password.rb
parent03716c1ee450e1a54c55f2c621f75aa9eda0253d (diff)
parentceb7cfd84df62730bd0b8d1d62ed44087c23f9a9 (diff)
downloadnet-ssh-00c38ab3569dea3177a203af60c1006e18f6915f.tar.gz
Merge pull request #904 from net-ssh/mfazekas-try-new-ubuntu
feat: use new ubuntu - jammy in gh actions and vagrant
Diffstat (limited to 'test/integration/test_password.rb')
-rw-r--r--test/integration/test_password.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/integration/test_password.rb b/test/integration/test_password.rb
index e051079..84eef6e 100644
--- a/test/integration/test_password.rb
+++ b/test/integration/test_password.rb
@@ -12,10 +12,12 @@ class TestPassword < NetSSHTest
end
def test_keyboard_interactive_with_good_password
+ skip "TODO keyboard-interactive on newer sshd" if sshd_8_or_later?
+
ps = Object.new
pt = Object.new
pt.expects(:start).with(type: 'keyboard-interactive', name: '', instruction: '').returns(ps)
- ps.expects(:ask).with('Password: ', false).returns("foopwd")
+ ps.expects(:ask).with('password: ', false).returns("foopwd")
ps.expects(:success)
ret = Net::SSH.start("localhost", "net_ssh_1", auth_methods: ['keyboard-interactive'], password_prompt: pt) do |ssh|
ssh.exec! 'echo "hello from:$USER"'
@@ -24,6 +26,8 @@ class TestPassword < NetSSHTest
end
def test_keyboard_interactive_with_one_failed_attempt
+ skip "TODO keyboard-interactive on newer sshd" if sshd_8_or_later?
+
ps = Object.new
pt = Object.new
pt.expects(:start).with(type: 'keyboard-interactive', name: '', instruction: '').returns(ps)