summaryrefslogtreecommitdiff
path: root/jstests/auth/auth_mechanisms_parsing.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/auth/auth_mechanisms_parsing.js')
-rw-r--r--jstests/auth/auth_mechanisms_parsing.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/jstests/auth/auth_mechanisms_parsing.js b/jstests/auth/auth_mechanisms_parsing.js
index 72f906b3c68..3954963b885 100644
--- a/jstests/auth/auth_mechanisms_parsing.js
+++ b/jstests/auth/auth_mechanisms_parsing.js
@@ -1,13 +1,13 @@
// Test for stripping whitespace for authenticationMechanisms
(function() {
- "use strict";
+"use strict";
- const conn = MongoRunner.runMongod(
- {setParameter: "authenticationMechanisms=SCRAM-SHA-1,SCRAM-SHA-256, PLAIN"});
+const conn = MongoRunner.runMongod(
+ {setParameter: "authenticationMechanisms=SCRAM-SHA-1,SCRAM-SHA-256, PLAIN"});
- const cmdOut = conn.getDB('admin').runCommand({getParameter: 1, authenticationMechanisms: 1});
+const cmdOut = conn.getDB('admin').runCommand({getParameter: 1, authenticationMechanisms: 1});
- // Check to see if whitespace in front of PLAIN is stripped
- assert.sameMembers(cmdOut.authenticationMechanisms, ["SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"]);
- MongoRunner.stopMongod(conn);
+// Check to see if whitespace in front of PLAIN is stripped
+assert.sameMembers(cmdOut.authenticationMechanisms, ["SCRAM-SHA-1", "SCRAM-SHA-256", "PLAIN"]);
+MongoRunner.stopMongod(conn);
}());