diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-05-31 16:45:55 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-06-07 14:31:01 -0400 |
commit | 24699d79e006b02089c9f96a7756e93b69a6e569 (patch) | |
tree | bea2fc898530fb212dc34ba2060c3182edfed816 /buildscripts/resmokelib | |
parent | 7790ebd5b8c8b946eb23b62e407929558e2bf424 (diff) | |
download | mongo-24699d79e006b02089c9f96a7756e93b69a6e569.tar.gz |
SERVER-35322 external_auth tests should use unique kerberos credentials cache per test
(cherry picked from commit bdd080769947c2f31f2d664815f534f0d70e60a0)
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r-- | buildscripts/resmokelib/testing/testcases/jstest.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/buildscripts/resmokelib/testing/testcases/jstest.py b/buildscripts/resmokelib/testing/testcases/jstest.py index 0d150930a44..3cb4ee0d505 100644 --- a/buildscripts/resmokelib/testing/testcases/jstest.py +++ b/buildscripts/resmokelib/testing/testcases/jstest.py @@ -82,14 +82,19 @@ class _SingleJSTestCase(interface.ProcessTestCase): process_kwargs = self.shell_options.get("process_kwargs", {}).copy() - if "KRB5_CONFIG" in process_kwargs and "KRB5CCNAME" not in process_kwargs: + if process_kwargs \ + and "env_vars" in process_kwargs \ + and "KRB5_CONFIG" in process_kwargs["env_vars"] \ + and "KRB5CCNAME" not in process_kwargs["env_vars"]: # Use a job-specific credential cache for JavaScript tests involving Kerberos. krb5_dir = os.path.join(data_dir, "krb5") + try: os.makedirs(krb5_dir) except os.error: pass - process_kwargs["KRB5CCNAME"] = "DIR:" + os.path.join(krb5_dir, ".") + + process_kwargs["env_vars"]["KRB5CCNAME"] = "DIR:" + krb5_dir self.shell_options["process_kwargs"] = process_kwargs |