diff options
author | Robbie Harwood <rharwood@redhat.com> | 2016-07-22 18:22:24 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2016-08-15 14:32:51 -0400 |
commit | 877476692b4c8a4c3fc5109483b41c74243fc60f (patch) | |
tree | d5f838644b58b7f0f8921827232c05ee2356f58d | |
parent | 3ef79e28b4996750a07874f80282acc0351ef675 (diff) | |
download | mod_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-x | tests/t_spnego.py | 4 |
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') |