summaryrefslogtreecommitdiff
path: root/jstests/auth/commands_builtin_roles.js
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-08-27 21:30:32 -0400
committerDaniel Gottlieb <daniel.gottlieb@mongodb.com>2018-08-27 21:30:32 -0400
commit428db103e3457040cb5261172733d3953cb5ebb1 (patch)
treeaddab185526d9fbf768ac10ec855f71e589a215f /jstests/auth/commands_builtin_roles.js
parentbdb7951bc48accda8368f5893bdf2627fc2588bf (diff)
downloadmongo-428db103e3457040cb5261172733d3953cb5ebb1.tar.gz
SERVER-36266: Add fsync auth privilege requirement to $backupCursor.
Diffstat (limited to 'jstests/auth/commands_builtin_roles.js')
-rw-r--r--jstests/auth/commands_builtin_roles.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/auth/commands_builtin_roles.js b/jstests/auth/commands_builtin_roles.js
index cee5957d354..92a21ec4096 100644
--- a/jstests/auth/commands_builtin_roles.js
+++ b/jstests/auth/commands_builtin_roles.js
@@ -73,11 +73,6 @@ function testProperAuthorization(conn, t, testcase, r) {
out = "command failed with " + tojson(res) + " on db " + testcase.runOnDb +
" with role " + r.key;
}
- // test can provide a function that will run if
- // the command completed successfully
- else if (testcase.onSuccess) {
- testcase.onSuccess(res);
- }
} else {
if (res.ok == 1 || (res.ok == 0 && res.code != authErrCode)) {
out = "expected authorization failure" + " but received result " + tojson(res) +
@@ -86,7 +81,7 @@ function testProperAuthorization(conn, t, testcase, r) {
}
r.db.logout();
- authCommandsLib.teardown(conn, t, runOnDb);
+ authCommandsLib.teardown(conn, t, runOnDb, res);
return out;
}