Skip to content

Commit

Permalink
Fix the tests for LibSSH::Session#userauth_publickey_auto
Browse files Browse the repository at this point in the history
  • Loading branch information
fmang authored and fwininger committed Jun 2, 2023
1 parent 141710d commit 3d0b70e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/integration/session_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@
session.host = SshHelper.host
session.port = DockerHelper.port
session.user = SshHelper.user
session.connect
end

context 'without valid private key' do
it 'is denied' do
session.connect
expect(session.userauth_publickey_auto).to eq(LibSSH::AUTH_DENIED)
end
end
Expand All @@ -82,6 +82,7 @@
end

it 'returns available methods' do
session.connect
expect(session.userauth_publickey_auto).to eq(LibSSH::AUTH_SUCCESS)
end
end
Expand Down

0 comments on commit 3d0b70e

Please sign in to comment.