summaryrefslogtreecommitdiff
path: root/jstests/ssl/ssl_hostname_validation.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/ssl/ssl_hostname_validation.js')
-rw-r--r--jstests/ssl/ssl_hostname_validation.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/jstests/ssl/ssl_hostname_validation.js b/jstests/ssl/ssl_hostname_validation.js
index f3bf97bd168..98f99b557e2 100644
--- a/jstests/ssl/ssl_hostname_validation.js
+++ b/jstests/ssl/ssl_hostname_validation.js
@@ -7,12 +7,6 @@ var SAN_CERT = "jstests/libs/localhostnameSAN.pem";
var CLIENT_CERT = "jstests/libs/client.pem"
var BAD_SAN_CERT = "jstests/libs/badSAN.pem";
-// We want to be able to control all SSL parameters
-// but still need an SSL shell hence the test is placed
-// in the /ssl directory
-TestData.useX509 = false;
-TestData.useSSL = false;
-
port = allocatePorts(1)[0];
function testCombination(certPath, allowInvalidHost, allowInvalidCert, shouldSucceed) {
@@ -52,7 +46,7 @@ function testCombination(certPath, allowInvalidHost, allowInvalidCert, shouldSuc
assert.eq(1, mongo, "Connection attempt succeeded when it should fail certPath: " +
certPath);
}
- stopMongod(port);
+ MongoRunner.stopMongod(port);
}
// 1. Test client connections with different server certificates