blob: a819c081ff2c4c19ec4b60a5ded5b0c3085dc235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Test for invalid sasl auth mechanisms
// @tags: [live_record_incompatible]
(function() {
'use strict';
function waitFailedToStart(pid, exitCode) {
assert.soon(function() {
const res = checkProgram(pid);
if (res.alive) {
return false;
}
return res.exitCode == exitCode;
}, `Failed to wait for ${pid} to die with exit code ${exitCode}`, 30 * 1000);
}
const m = MongoRunner.runMongod({
setParameter: "authenticationMechanisms=SCRAM-SHA-1,foo",
waitForConnect: false,
});
waitFailedToStart(m.pid, 2);
})();
|