diff options
Diffstat (limited to 'jstests/auth/clac_system_colls.js')
-rw-r--r-- | jstests/auth/clac_system_colls.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/auth/clac_system_colls.js b/jstests/auth/clac_system_colls.js index 066b6e6c727..496a93c5344 100644 --- a/jstests/auth/clac_system_colls.js +++ b/jstests/auth/clac_system_colls.js @@ -26,6 +26,7 @@ function runTest(admindb) { admindb.createUser({user: "user", pwd: "pwd", roles: ["FindInDB"]}); // Verify the find on all collections exludes system collections + admindb.logout(); assert.eq(1, admindb.auth("user", "pwd")); assert.doesNotThrow(function() { @@ -36,6 +37,7 @@ function runTest(admindb) { } // Verify that find on system collections gives find permissions + admindb.logout(); assert.eq(1, admindb.auth("sysUser", "pwd")); assert.throws(function() { |