summaryrefslogtreecommitdiffstats
path: root/proxy/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-12-08 13:00:57 -0500
committerSimo Sorce <simo@redhat.com>2015-03-21 14:24:47 -0400
commit7190829be2814269463dd91cbb480d4585fcae6c (patch)
treebb5f58b1d650d885673d417cdf5d7e3c9441154a /proxy/tests
parentf613e9666feca45567018cfccb9f061da597dcf2 (diff)
downloadgss-proxy-7190829be2814269463dd91cbb480d4585fcae6c.tar.gz
gss-proxy-7190829be2814269463dd91cbb480d4585fcae6c.tar.xz
gss-proxy-7190829be2814269463dd91cbb480d4585fcae6c.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>
Diffstat (limited to 'proxy/tests')
-rwxr-xr-xproxy/tests/runtests.py7
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)