diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2016-08-10 14:39:34 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2016-08-10 14:39:34 -0400 |
commit | f6bb7b0a3bff0495db6be1e04ff72d95862cbb6f (patch) | |
tree | f8b9cc8250552dc7d2602451c7f84e64ba84d25e /jstests | |
parent | df2dacb8a92ac0a5f42b7e40a848c8074940ef2d (diff) | |
download | mongo-f6bb7b0a3bff0495db6be1e04ff72d95862cbb6f.tar.gz |
Revert "SERVER-22826 Support X509 Authorization"
This reverts commit d930f4832631eca7092ada4328d780f2b8d19d31.
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/auth/role_management_commands_lib.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/jstests/auth/role_management_commands_lib.js b/jstests/auth/role_management_commands_lib.js index 4da8d4bac49..e1ff7860950 100644 --- a/jstests/auth/role_management_commands_lib.js +++ b/jstests/auth/role_management_commands_lib.js @@ -278,27 +278,6 @@ function runAllRoleManagementCommandsTests(conn, writeConcern) { res = testUserAdmin.runCommand({rolesInfo: 1, showBuiltinRoles: 1}); assert.eq(10, res.roles.length); - - res = testUserAdmin.runCommand({rolesInfo: "testRole1", showPrivileges: 'asUserFragment'}); - assert(res.userFragment); - assert.eq(1, res.userFragment.roles.length); - assert.eq([{role: "testRole1", db: "test"}], res.userFragment.roles); - assert.eq(2, res.userFragment.inheritedRoles.length); - assert.contains({role: "testRole1", db: "test"}, res.userFragment.inheritedRoles); - assert.contains({role: "read", db: "test"}, res.userFragment.inheritedRoles); - assert.gt(res.userFragment.inheritedPrivileges.length, 0); - - res = testUserAdmin.runCommand( - {rolesInfo: ['testRole1', 'testRole2'], showPrivileges: 'asUserFragment'}); - assert(res.userFragment); - assert.eq(2, res.userFragment.roles.length); - assert.contains({role: "testRole1", db: "test"}, res.userFragment.roles); - assert.contains({role: "testRole2", db: "test"}, res.userFragment.roles); - assert.eq(3, res.userFragment.inheritedRoles.length); - assert.contains({role: "testRole1", db: "test"}, res.userFragment.inheritedRoles); - assert.contains({role: "testRole2", db: "test"}, res.userFragment.inheritedRoles); - assert.contains({role: "read", db: "test"}, res.userFragment.inheritedRoles); - assert.gt(res.userFragment.inheritedPrivileges.length, 0); })(); (function testDropRole() { |