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-21 14:23:46 -0400
commitf613e9666feca45567018cfccb9f061da597dcf2 (patch)
tree742d34f49f10fdc928a0b8b3a7273a0b6b31d6e8
parente7e2f0b8962b8739d5c1b3b5d16b7fcf67e62f75 (diff)
downloadgss-proxy-f613e9666feca45567018cfccb9f061da597dcf2.tar.gz
gss-proxy-f613e9666feca45567018cfccb9f061da597dcf2.tar.xz
gss-proxy-f613e9666feca45567018cfccb9f061da597dcf2.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)