diff options
author | Erwin Pe <erwin.pe@mongodb.com> | 2021-10-05 16:11:55 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-05 16:35:22 +0000 |
commit | 0cd03a0192bb8ab880476bdc8d95c9620771264d (patch) | |
tree | 59c1c29308fc4ab759eb47580c5c5defdefbe22a /jstests/auth | |
parent | ec3acbdb7580d99f524f2893abe153d6aae62e75 (diff) | |
download | mongo-0cd03a0192bb8ab880476bdc8d95c9620771264d.tar.gz |
SERVER-59294 Check action type for oidReset
(cherry picked from commit 9961fac1b2090484ec3ceaedc921ce2794e2fc79)
Diffstat (limited to 'jstests/auth')
-rw-r--r-- | jstests/auth/lib/commands_lib.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/jstests/auth/lib/commands_lib.js b/jstests/auth/lib/commands_lib.js index ae0e645a356..4169036623f 100644 --- a/jstests/auth/lib/commands_lib.js +++ b/jstests/auth/lib/commands_lib.js @@ -3501,8 +3501,24 @@ var authCommandsLib = { testname: "features", command: {features: 1}, testcases: [ - {runOnDb: firstDbName, roles: roles_all, privilegesRequired: []}, - {runOnDb: secondDbName, roles: roles_all, privilegesRequired: []} + {runOnDb: firstDbName, roles: roles_all, privileges: []}, + {runOnDb: secondDbName, roles: roles_all, privileges: []} + ] + }, + { + testname: "features_oidReset", + command: {features: 1, oidReset: true}, + testcases: [ + { + runOnDb: firstDbName, + roles: roles_hostManager, + privileges: [{resource: {cluster: true}, actions: ["oidReset"]}], + }, + { + runOnDb: secondDbName, + roles: roles_hostManager, + privileges: [{resource: {cluster: true}, actions: ["oidReset"]}], + } ] }, { |