diff options
author | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-11-29 14:10:24 -0500 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2017-11-29 14:10:24 -0500 |
commit | b8f64cc3fde6d041f3e90b1cb2e153b0b15f6c47 (patch) | |
tree | 2bb46d3dc6f2e927ff1962eec0215bb788809a01 /jstests/serial_run | |
parent | d923a5575bf277bfc49073597ca0c4d156b93492 (diff) | |
download | mongo-b8f64cc3fde6d041f3e90b1cb2e153b0b15f6c47.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.
Diffstat (limited to 'jstests/serial_run')
-rw-r--r-- | jstests/serial_run/srv-uri.js | 4 |
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); })(); |