Skip to content

Commit

Permalink
[travis] Install gssntlmssp during testing
Browse files Browse the repository at this point in the history
This lets us test that the NTLM mechanism behaves correctly and
properly test #148.
  • Loading branch information
frozencemetery committed Mar 26, 2018
1 parent 85c563a commit 5e58d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .travis/lib-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ setup::debian::install() {
if [ x"$KRB5_VER" = "xheimdal" ]; then
apt-get -y install heimdal-dev
else
apt-get -y install krb5-{user,kdc,admin-server,multidev} libkrb5-dev
apt-get -y install krb5-{user,kdc,admin-server,multidev} libkrb5-dev \
gss-ntlmssp
fi

apt-get -y install gcc virtualenv python$IS3-{virtualenv,dev} cython$IS3
Expand Down Expand Up @@ -55,7 +56,8 @@ setup::fedora::install() {
}

setup::rh::install() {
setup::rh::yuminst krb5-{devel,libs,server,workstation} which gcc findutils
setup::rh::yuminst krb5-{devel,libs,server,workstation} \
which gcc findutils gssntlmssp

if [ -f /etc/fedora-release ]; then
setup::fedora::install
Expand Down
4 changes: 0 additions & 4 deletions gssapi/tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,8 @@ def test_rfc5587(self):
known_mech_attrs = inquire_out.known_mech_attrs

mech_attrs.should_be_a(set)
mech_attrs.shouldnt_be_empty()

known_mech_attrs.should_be_a(set)
known_mech_attrs.shouldnt_be_empty()

# Verify that we get data for every available
# attribute. Testing the contents of a few known
Expand Down Expand Up @@ -749,12 +747,10 @@ def test_sasl_names(self):
out_mn = out.mech_name
out_mn.shouldnt_be_none()
out_mn.should_be_a(bytes)
out_mn.shouldnt_be_empty()

out_md = out.mech_description
out_md.shouldnt_be_none()
out_md.should_be_a(bytes)
out_md.shouldnt_be_empty()

cmp_mech = gb.inquire_mech_for_saslname(out_smn)
cmp_mech.shouldnt_be_none()
Expand Down

0 comments on commit 5e58d2e

Please sign in to comment.