summaryrefslogtreecommitdiff
path: root/jstests/sslSpecial
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2021-06-16 10:41:25 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-06-16 15:40:35 +0000
commitc73b1c09eb5ce2053577abac0a4ba360e3845de8 (patch)
tree90ebcc920053920129cd0c2d4e60d0ca4146f3a2 /jstests/sslSpecial
parenta616859a60e6cbb40ab0b7ddbeed06e726bd40bc (diff)
downloadmongo-c73b1c09eb5ce2053577abac0a4ba360e3845de8.tar.gz
SERVER-55792 Verify credentials when clusterAuthMode is set via setParameter
Diffstat (limited to 'jstests/sslSpecial')
-rw-r--r--jstests/sslSpecial/set_parameter_nossl.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sslSpecial/set_parameter_nossl.js b/jstests/sslSpecial/set_parameter_nossl.js
index 95b66bc274f..94f4337fb80 100644
--- a/jstests/sslSpecial/set_parameter_nossl.js
+++ b/jstests/sslSpecial/set_parameter_nossl.js
@@ -5,7 +5,7 @@
// cannot be used to transition from disabled/keyFile modes
function testTransition(newSSLMode, newClusterAuthMode) {
// If no parameters are given sslMode defaults to disabled
- var conn = MongoRunner.runMongod({clusterAuthMode: "keyFile"});
+ var conn = MongoRunner.runMongod({clusterAuthMode: "keyFile", keyFile: 'jstests/libs/key1'});
var adminDB = conn.getDB("admin");
adminDB.createUser({user: "root", pwd: "pwd", roles: ["root"]});
adminDB.auth("root", "pwd");