From 7190829be2814269463dd91cbb480d4585fcae6c Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 8 Dec 2014 13:00:57 -0500 Subject: Really use gss-proxy in tests This is embarrassing, but due to the fact we were passing in client evnironment variables we were not actually testing the GSS-Proxy, just regular GSSAPI as the client started so quickly that the socket was not available yet and it simply fell back to regular GSSAPI. This commit allows some time for the GSS-Proxy to actually start and prevents the client from falling back by not telling it where client credentials are. Signed-off-by: Simo Sorce --- proxy/tests/runtests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'proxy') diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py index 38f692c..cb8c73c 100755 --- a/proxy/tests/runtests.py +++ b/proxy/tests/runtests.py @@ -338,9 +338,9 @@ def run_basic_test(testdir, logfile, env): cli_keytab = os.path.join(testdir, USR_KTNAME) cli_ccache = os.path.join(testdir, 't_basic_ccname') clienv = {'GSS_USE_PROXY': 'yes', - 'GSSPROXY_BEHAVIOR': 'REMOTE_FIRST', - 'KRB5CCNAME': cli_ccache, - 'KRB5_CLIENT_KTNAME': cli_keytab} + 'GSSPROXY_BEHAVIOR': 'REMOTE_FIRST'} + #'KRB5CCNAME': cli_ccache, + #'KRB5_CLIENT_KTNAME': cli_keytab} clienv.update(env) pipe0 = os.pipe() @@ -400,6 +400,7 @@ if __name__ == '__main__': with (open(testlog, 'a')) as logfile: gproc, gpsocket = setup_gssproxy(testdir, logfile, keysenv) + time.sleep(2) #Give time to gssproxy to fully start up processes['GSS-Proxy(%d)' % gproc.pid] = gproc gssapienv['GSSPROXY_SOCKET'] = gpsocket run_basic_test(testdir, logfile, gssapienv) -- cgit