mirror of https://github.com/mongodb/mongo
9 lines
458 B
JavaScript
9 lines
458 B
JavaScript
// Test for stripping whitespace for authenticationMechanisms
|
|
const conn = MongoRunner.runMongod({setParameter: "authenticationMechanisms=SCRAM-SHA-1,SCRAM-SHA-256, PLAIN"});
|
|
|
|
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);
|