diff options
author | Kristina <kristina@10gen.com> | 2011-09-30 13:11:03 -0400 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2011-09-30 13:11:21 -0400 |
commit | a5cfd6af349660c81aa4d51400aa525423bffc18 (patch) | |
tree | 19ddc73890b065e6ffec69c0cd621942dfe01e13 /jstests/auth/auth1.js | |
parent | ce2148699b30f457c42461e29dd3a7c8ddd6eeda (diff) | |
download | mongo-a5cfd6af349660c81aa4d51400aa525423bffc18.tar.gz |
make getLastError require auth SERVER-3773
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r-- | jstests/auth/auth1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index f52ff80d206..3d0a93c8f34 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -21,7 +21,7 @@ assert.throws( function() { t.findOne() }, [], "read without login" ); print("make sure we can't run certain commands w/out auth"); var errmsg = "need to login"; assert.eq(db.runCommand({eval : "function() { return 1; }"}).errmsg, errmsg); -//assert.eq(db.runCommand({getLastError : 1}).errmsg, errmsg); +assert.eq(db.runCommand({getLastError : 1}).errmsg, errmsg); assert.eq(db.runCommand({whatsmyuri : 1}).errmsg, errmsg); assert.eq(db.runCommand({availableQueryOptions : 1}).errmsg, errmsg); assert.eq(db.adminCommand({getLog : 1}).errmsg, errmsg); |