Sha256: e30ce3347031dad822253b56c31a347101e7935284e5ed9f64602043c42f7cc3
Contents?: true
Size: 928 Bytes
Versions: 63
Compression:
Stored size: 928 Bytes
Contents
# # Tests for communication capability with Pageant (or KeeAgent) # process, to include the case where it is running in different UAC # context. # # To run: # - Ensure that Pageant is running (not as administrator). # - Open two command prompts, one as an administrator and one limited # (normal). # - Within each, from the root net/ssh project directory, execute: # ruby -Ilib -Itest -rrubygems test/manual/test_pageant.rb # require 'common' require 'net/ssh/authentication/agent' module Authentication class TestPageant < Test::Unit::TestCase def test_agent_should_be_able_to_negotiate assert_nothing_raised(Net::SSH::Authentication::AgentNotAvailable) { agent.negotiate! } end private def agent(auto=:connect) @agent ||= begin agent = Net::SSH::Authentication::Agent.new agent.connect! if auto == :connect agent end end end end
Version data entries
63 entries across 53 versions & 8 rubygems