File: integration_spec.rb

package info (click to toggle)
ruby-net-ssh-krb 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 156 kB
  • sloc: ruby: 277; makefile: 4
file content (14 lines) | stat: -rw-r--r-- 362 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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