summaryrefslogtreecommitdiff
path: root/jstests/serial_run/srv-uri.js
blob: ee0bc743e856724d7b9676b685401cf8da28f3c8 (plain)
1
2
3
4
5
6
7
8
9
(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);
})();