summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-12-08 12:52:52 -0500
committerSimo Sorce <simo@redhat.com>2015-03-24 11:46:35 -0400
commitd52acd008b3ffc592d7b6a2aaf97f181a6a23a81 (patch)
tree742d34f49f10fdc928a0b8b3a7273a0b6b31d6e8
parentabfa63e92a870bd35fd7c2ac362f509d2d432f2f (diff)
downloadgss-proxy-d52acd008b3ffc592d7b6a2aaf97f181a6a23a81.tar.gz
gss-proxy-d52acd008b3ffc592d7b6a2aaf97f181a6a23a81.tar.xz
gss-proxy-d52acd008b3ffc592d7b6a2aaf97f181a6a23a81.zip
Use different env vars bases for gssapi tests
Restrict what environment variables are available by default. gssapienv in particular should not bleed in KRB5_KTNAME.
-rwxr-xr-xproxy/tests/runtests.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/proxy/tests/runtests.py b/proxy/tests/runtests.py
index 7cceb2f..38f692c 100755
--- a/proxy/tests/runtests.py
+++ b/proxy/tests/runtests.py
@@ -263,7 +263,8 @@ def setup_gssapi_env(testdir, wrapenv):
def run_interposetest(testdir, env):
testlog = os.path.join(testdir, 'tests.log')
- ienv = {"KRB5CCNAME": os.path.join(testdir, 'interpose_ccache')}
+ ienv = {"KRB5CCNAME": os.path.join(testdir, 'interpose_ccache'),
+ "KRB5_KTNAME": os.path.join(testdir, SVC_KTNAME)}
ienv.update(env)
usr_keytab = os.path.join(testdir, USR_KTNAME)
with (open(testlog, 'a')) as logfile:
@@ -393,7 +394,7 @@ if __name__ == '__main__':
keysenv = setup_keys(testdir, kdcenv)
- gssapienv = setup_gssapi_env(testdir, keysenv)
+ gssapienv = setup_gssapi_env(testdir, kdcenv)
run_interposetest(testdir, gssapienv)