From 877476692b4c8a4c3fc5109483b41c74243fc60f Mon Sep 17 00:00:00 2001 From: Robbie Harwood Date: Fri, 22 Jul 2016 18:22:24 -0400 Subject: Ensure gssapi_session actually contains MagBearerToken Fallout from #98 Signed-off-by: Robbie Harwood Reviewed-by: Simo Sorce Closes #100 --- tests/t_spnego.py | 4 ++++ 1 file changed, 4 insertions(+) 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') -- cgit