Sha256: 0dece33a9468b58b41b9f26e0b1481135396f6a1729332972b2a11d8f712675a

Contents?: true

Size: 362 Bytes

Versions: 2

Compression:

Stored size: 362 Bytes

Contents

require 'spec_helper'
require 'net/ssh'

describe "run commands on a kerberized server" do
  let :conn do
    Net::SSH.start(ENV['KERBEROS_TEST_HOST'], ENV['USER'], :auth_methods => ["gssapi-with-mic", "publickey"])
  end
  
  it "it should work" do
    remote_user_name = conn.exec!("whoami")
    
    expect(remote_user_name.strip).to eq ENV['USER']
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
net-ssh-krb-0.5.1 spec/integration_spec.rb
net-ssh-krb-0.4.0 spec/integration_spec.rb