From 5e58d2e22545619038e07af14e8e85515c113047 Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Wed, 21 Mar 2018 13:10:37 -0400 Subject: [PATCH] [travis] Install gssntlmssp during testing This lets us test that the NTLM mechanism behaves correctly and properly test #148. --- .travis/lib-setup.sh | 6 ++++-- gssapi/tests/test_raw.py | 4 ---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.travis/lib-setup.sh b/.travis/lib-setup.sh index bafa4c39..dd1edbe7 100644 --- a/.travis/lib-setup.sh +++ b/.travis/lib-setup.sh @@ -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 @@ -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 diff --git a/gssapi/tests/test_raw.py b/gssapi/tests/test_raw.py index 20df9f88..036b26b6 100644 --- a/gssapi/tests/test_raw.py +++ b/gssapi/tests/test_raw.py @@ -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 @@ -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()