>From 94d3f7fc563b56dc9685321e885f5802c52b34b2 Mon Sep 17 00:00:00 2001
From: Simo Sorce <simo@redhat.com>
Date: Mon, 8 Dec 2014 13:00:57 -0500
Subject: [PATCH 6/6] 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 SS-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>
---
 proxy/tests/runtests.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py
index 38f692cdb53371a0c989e34a61a62138a413e99b..cb8c73cf5c1197cb733109743d89a385e2ecfd1c 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)
-- 
2.1.0

