diff options
author | Spencer T Brody <spencer@10gen.com> | 2012-12-07 17:42:30 -0500 |
---|---|---|
committer | Spencer T Brody <spencer@10gen.com> | 2012-12-07 17:47:52 -0500 |
commit | 5172fa4b00a02b7a2102bf54fe1dcd17ca1b0801 (patch) | |
tree | d59660f1a6bd50450df213f539b2051f44057ff5 /jstests/auth/auth1.js | |
parent | 001d19f0b8a50925aa7192cd565b66168eb9efbc (diff) | |
download | mongo-5172fa4b00a02b7a2102bf54fe1dcd17ca1b0801.tar.gz |
SERVER-7572 Change a bunch of commands to not require auth in old authorization system
Diffstat (limited to 'jstests/auth/auth1.js')
-rw-r--r-- | jstests/auth/auth1.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/jstests/auth/auth1.js b/jstests/auth/auth1.js index da6357121e4..e1de19fd49b 100644 --- a/jstests/auth/auth1.js +++ b/jstests/auth/auth1.js @@ -26,14 +26,9 @@ db.getSisterDB( "admin" ).addUser( "super", "super" ); 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"; +var errmsg = "unauthorized"; assert.eq(db.runCommand({eval : "function() { return 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 : "global"}).errmsg, errmsg); -assert.eq(db.runCommand({getPrevError : 1}).errmsg, errmsg); -assert.eq(db.runCommand({resetError : 1}).errmsg, errmsg); assert( db.auth( "eliot" , "eliot" ) , "auth failed" ); |