mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
b8f64cc3fd
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.
10 lines
441 B
JavaScript
10 lines
441 B
JavaScript
(function() {
|
|
"use strict";
|
|
const md = MongoRunner.runMongod({port: "27017", dbpath: MongoRunner.dataPath});
|
|
assert.neq(null, md, "unable to start mongod");
|
|
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);
|
|
})();
|