summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorADAM David Alan Martin <adam.martin@10gen.com>2017-11-29 14:10:24 -0500
committerADAM David Alan Martin <adam.martin@10gen.com>2017-11-29 14:15:00 -0500
commit6ba561486b88469cdf5f498f85e7d673ce43b282 (patch)
tree60d1655d35f2024c88355dbbeb6a3755b5ab12af
parent03f043b5ce4d29f498afffaa19e17fedb59fc20f (diff)
downloadmongo-6ba561486b88469cdf5f498f85e7d673ce43b282.tar.gz
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)
-rw-r--r--jstests/serial_run/srv-uri.js4
1 files 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);
})();