diff options
author | Simo Sorce <simo@redhat.com> | 2014-12-08 13:00:57 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-03-24 11:46:37 -0400 |
commit | 785889ad666a67525cbd73d1b098dd53b4cdfc18 (patch) | |
tree | bb5f58b1d650d885673d417cdf5d7e3c9441154a | |
parent | d52acd008b3ffc592d7b6a2aaf97f181a6a23a81 (diff) | |
download | gss-proxy-785889ad666a67525cbd73d1b098dd53b4cdfc18.tar.gz gss-proxy-785889ad666a67525cbd73d1b098dd53b4cdfc18.tar.xz gss-proxy-785889ad666a67525cbd73d1b098dd53b4cdfc18.zip |
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 <simo@redhat.com>
-rwxr-xr-x | proxy/tests/runtests.py | 7 |
1 files changed, 4 insertions, 3 deletions
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) |