From 6ba561486b88469cdf5f498f85e7d673ce43b282 Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Wed, 29 Nov 2017 14:10:24 -0500 Subject: SERVER-32111 Make `srv-uri` test not use SSL The `srv-uri` test needs to explicitly decline to use SSL, since the new `mongo+srv://` URI scheme implicitly turns on SSL. On SSL based configurations, the test will fail to connect to localhost when SSL is enabled. (cherry picked from commit b8f64cc3fde6d041f3e90b1cb2e153b0b15f6c47) --- jstests/serial_run/srv-uri.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jstests/serial_run/srv-uri.js b/jstests/serial_run/srv-uri.js index 1652e3fa8f2..a3bb305aeee 100644 --- a/jstests/serial_run/srv-uri.js +++ b/jstests/serial_run/srv-uri.js @@ -2,8 +2,8 @@ "use strict"; const md = MongoRunner.runMongod({port: "27017", dbpath: MongoRunner.dataPath}); assert.neq(null, md, "unable to start mongod"); - const exitCode = - runMongoProgram('mongo', 'mongodb+srv://test1.test.build.10gen.cc.', '--eval', ';'); + const targetURI = 'mongodb+srv://test1.test.build.10gen.cc./?ssl=false'; + const exitCode = runMongoProgram('mongo', targetURI, '--eval', ';'); assert.eq(exitCode, 0, "Failed to connect with a `mongodb+srv://` style URI."); MongoRunner.stopMongod(md); })(); -- cgit v1.2.1