diff options
author | Eric Milkie <milkie@10gen.com> | 2012-12-11 11:16:58 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-12-11 15:51:59 -0500 |
commit | 1dfaa36f44989f41eadc1b7d8e108ca105be3a55 (patch) | |
tree | 69a836c7b6cb8bac585a7afd0da678db7e33f181 /buildscripts | |
parent | 7f15a5ca4f8766e935cc7881fec2edb6b939ccec (diff) | |
download | mongo-1dfaa36f44989f41eadc1b7d8e108ca105be3a55.tar.gz |
SERVER-7202 test with certificates
Adjust unit tests to present certificates for validation at SSL handshake time.
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/smoke.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index 9210a713631..77958976efa 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -196,8 +196,10 @@ class mongod(object): argv += ['--auth'] self.auth = True if self.kwargs.get('use_ssl'): - argv += ['--sslOnNormalPorts', '--sslPEMKeyFile', 'jstests/libs/smoke.pem'] - + argv += ['--sslOnNormalPorts', + '--sslPEMKeyFile', 'jstests/libs/server.pem', + '--sslCAFile', 'jstests/libs/ca.pem'] + print "running " + " ".join(argv) self.proc = self._start(buildlogger(argv, is_global=True)) @@ -393,7 +395,9 @@ def runTest(test): if small_oplog or small_oplog_rs: argv += ["--eval", 'testingReplication = true;'] if use_ssl: - argv += ["--ssl"] + argv += ["--ssl", + "--sslPEMKeyFile", "jstests/libs/client.pem", + "--sslCAFile", "jstests/libs/ca.pem"] argv += [path] elif ext in ["", ".exe"]: # Blech. @@ -406,7 +410,7 @@ def runTest(test): argv = [test_path and os.path.abspath(os.path.join(test_path, path)) or path, "--port", mongod_port] else: - raise Bug("fell off in extenstion case: %s" % path) + raise Bug("fell off in extension case: %s" % path) if keyFile: f = open(keyFile, 'r') |