diff options
author | Spencer T Brody <spencer@mongodb.com> | 2015-03-22 12:08:42 -0400 |
---|---|---|
committer | Spencer T Brody <spencer@mongodb.com> | 2015-04-06 18:19:21 -0400 |
commit | 7baac52f05a3e0cbdb7168e51836f507eda99dff (patch) | |
tree | 0bec9669a362aabd5d8b5cbcdcba4f9418c42509 /jstests/ssl/ssl_crl_revoked.js | |
parent | 9b278765717f4645f1469b389338d3ec055c3316 (diff) | |
download | mongo-7baac52f05a3e0cbdb7168e51836f507eda99dff.tar.gz |
SERVER-17450 Cleanup SSL test infrastructure
Diffstat (limited to 'jstests/ssl/ssl_crl_revoked.js')
-rw-r--r-- | jstests/ssl/ssl_crl_revoked.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/jstests/ssl/ssl_crl_revoked.js b/jstests/ssl/ssl_crl_revoked.js index 53d6671f4f4..97ab29bf46e 100644 --- a/jstests/ssl/ssl_crl_revoked.js +++ b/jstests/ssl/ssl_crl_revoked.js @@ -2,18 +2,12 @@ // Note: crl_client_revoked.pem is a CRL with the client.pem certificate listed as revoked. // This test should test that the user cannot connect with client.pem certificate. -port = allocatePorts( 1 )[ 0 ]; -var baseName = "jstests_ssl_ssl_crl_revoked"; +var md = MongoRunner.runMongod({sslMode: "requireSSL", + sslPEMKeyFile: "jstests/libs/server.pem", + sslCAFile: "jstests/libs/ca.pem", + sslCRLFile: "jstests/libs/crl_client_revoked.pem"}); - -var md = startMongod( "--port", port, "--dbpath", MongoRunner.dataPath + baseName, - "--sslMode","requireSSL", - "--sslPEMKeyFile", "jstests/libs/server.pem", - "--sslCAFile", "jstests/libs/ca.pem", - "--sslCRLFile", "jstests/libs/crl_client_revoked.pem"); - - -var mongo = runMongoProgram("mongo", "--port", port, "--ssl", "--sslAllowInvalidCertificates", +var mongo = runMongoProgram("mongo", "--port", md.port, "--ssl", "--sslAllowInvalidCertificates", "--sslPEMKeyFile", "jstests/libs/client_revoked.pem", "--eval", ";"); |