Sha256: 772e75d31f58e36bf806e7747042e60c3c38667667fe75d878bb956bc4f2c9ed

Contents?: true

Size: 642 Bytes

Versions: 42

Compression:

Stored size: 642 Bytes

Contents

$: << File.dirname(__FILE__) + '/../../lib/'
require 'gssapi'
require 'base64'
require 'yaml'


describe GSSAPI::Simple, 'Test the Simple GSSAPI interface' do

  before :all do
    @conf = YAML.load_file "#{File.dirname(__FILE__)}/conf_file.yaml"
  end

  it 'should get the initial context for a client' do
    gsscli = GSSAPI::Simple.new(@conf[:c_host], @conf[:c_service])
    token = gsscli.init_context
    token.should_not be_empty
  end

  it 'should acquire credentials for a server service' do
    gsscli = GSSAPI::Simple.new(@conf[:s_host], @conf[:s_service], @conf[:keytab])
    gsscli.acquire_credentials.should be_true
  end

end

Version data entries

42 entries across 37 versions & 6 rubygems

Version Path
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.3.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.5.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.2.0 vendor/bundle/ruby/2.4.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.1.0 vendor/bundle/ruby/2.4.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb
vagrant-unbundled-2.0.0.1 vendor/bundle/ruby/2.4.0/gems/gssapi-1.2.0/test/spec/gssapi_simple_spec.rb