summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobbie Harwood <rharwood@redhat.com>2016-07-22 18:22:24 -0400
committerSimo Sorce <simo@redhat.com>2016-08-15 14:32:51 -0400
commit877476692b4c8a4c3fc5109483b41c74243fc60f (patch)
treed5f838644b58b7f0f8921827232c05ee2356f58d
parent3ef79e28b4996750a07874f80282acc0351ef675 (diff)
downloadmod_auth_gssapi-877476692b4c8a4c3fc5109483b41c74243fc60f.tar.gz
mod_auth_gssapi-877476692b4c8a4c3fc5109483b41c74243fc60f.tar.xz
mod_auth_gssapi-877476692b4c8a4c3fc5109483b41c74243fc60f.zip
Ensure gssapi_session actually contains MagBearerToken
Fallout from #98 Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Closes #100
-rwxr-xr-xtests/t_spnego.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/t_spnego.py b/tests/t_spnego.py
index 83a9586..d6f77ca 100755
--- a/tests/t_spnego.py
+++ b/tests/t_spnego.py
@@ -12,3 +12,7 @@ if __name__ == '__main__':
r = sess.get(url, auth=HTTPKerberosAuth())
if r.status_code != 200:
raise ValueError('Spnego failed')
+
+ c = r.cookies
+ if not c.get("gssapi_session").startswith("MagBearerToken="):
+ raise ValueError('gssapi_session not set')